Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5755)

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
===================================================================
--- chrome/browser/ui/startup/startup_browser_creator_impl.cc (revision 175396)
+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc (working copy)
@@ -22,6 +22,7 @@
#include "base/string_split.h"
#include "base/threading/thread_restrictions.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/api/infobars/infobar_service.h"
#include "chrome/browser/auto_launch_trial.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
@@ -59,7 +60,7 @@
#include "chrome/browser/ui/startup/autolaunch_prompt.h"
#include "chrome/browser/ui/startup/bad_flags_prompt.h"
#include "chrome/browser/ui/startup/default_browser_prompt.h"
-#include "chrome/browser/ui/startup/obsolete_os_prompt.h"
+#include "chrome/browser/ui/startup/obsolete_os_info_bar.h"
#include "chrome/browser/ui/startup/session_crashed_prompt.h"
#include "chrome/browser/ui/startup/startup_browser_creator.h"
#include "chrome/browser/ui/tabs/pinned_tab_codec.h"
@@ -856,7 +857,7 @@
return;
if (HasPendingUncleanExit(browser->profile()))
- chrome::ShowSessionCrashedPrompt(browser);
+ SessionCrashedInfoBarDelegate::Create(browser);
// The bad flags info bar and the obsolete system info bar are only added to
// the first profile which is launched. Other profiles might be restoring the
@@ -864,7 +865,8 @@
// focused tabs here.
if (is_process_startup == chrome::startup::IS_PROCESS_STARTUP) {
chrome::ShowBadFlagsPrompt(browser);
- chrome::ShowObsoleteOSPrompt(browser);
+ chrome::ObsoleteOSInfoBar::Create(
+ InfoBarService::FromWebContents(chrome::GetActiveWebContents(browser)));
if (browser_defaults::kOSSupportsOtherBrowsers &&
!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) {
« no previous file with comments | « chrome/browser/ui/startup/session_crashed_prompt.cc ('k') | chrome/browser/ui/sync/one_click_signin_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698