Skip to content

Commit

Permalink
Don't create a LoFiBarPopupController if SnackbarManager is null
Browse files Browse the repository at this point in the history
BUG=594381

Review URL: https://codereview.chromium.org/1803823002

Cr-Commit-Position: refs/heads/master@{#381078}
(cherry picked from commit e086724)

Review URL: https://codereview.chromium.org/1805093002 .

Cr-Commit-Position: refs/branch-heads/2661@{crosswalk-project#242}
Cr-Branched-From: ef6f6ae-refs/heads/master@{#378081}
  • Loading branch information
Megan Jablonski committed Mar 15, 2016
1 parent 81c1f12 commit 064272d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,10 @@ public Tab(int id, int parentId, boolean incognito, Context context,
mWindowAndroid = window;
mLaunchType = type;
if (mThemedApplicationContext != null) {
mLoFiBarPopupController = new LoFiBarPopupController(
mThemedApplicationContext, getSnackbarManager());
if (getSnackbarManager() != null) {
mLoFiBarPopupController = new LoFiBarPopupController(
mThemedApplicationContext, getSnackbarManager());
}
Resources resources = mThemedApplicationContext.getResources();
mIdealFaviconSize = resources.getDimensionPixelSize(R.dimen.default_favicon_size);
mDefaultThemeColor = mIncognito
Expand Down

0 comments on commit 064272d

Please sign in to comment.