Commit 7ffe7e1b authored by sail@chromium.org's avatar sail@chromium.org

Don't show first run bubble for non-tabbed windows

BUG=104685
TEST=


Review URL: http://codereview.chromium.org/8622006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111089 0039d316-1c4b-4281-b951-d872f2087c98
parent 0f083403
......@@ -5285,6 +5285,10 @@ void Browser::OnWindowDidShow() {
return;
window_has_shown_ = true;
// Nothing to do for non-tabbed windows.
if (!is_type_tabbed())
return;
// Suppress the first run bubble if we're showing the sync promo.
TabContents* contents = GetSelectedTabContents();
bool is_showing_promo = contents &&
......@@ -5309,7 +5313,7 @@ void Browser::OnWindowDidShow() {
// windows.
local_state->SetBoolean(prefs::kShouldShowFirstRunBubble, false);
window_->GetLocationBar()->ShowFirstRunBubble(bubble_type);
} else if (is_type_tabbed()) {
} else {
GlobalErrorService* service =
GlobalErrorServiceFactory::GetForProfile(profile());
GlobalError* error = service->GetFirstGlobalErrorWithBubbleView();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment