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

Side by Side Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 125443002: In-app messaging to communicate the imminent 32-bit deprecation to 32-bit-only users (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h" 5 #include "chrome/browser/ui/startup/startup_browser_creator_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "apps/app_restore_service.h" 10 #include "apps/app_restore_service.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "chrome/browser/ui/browser_navigator.h" 58 #include "chrome/browser/ui/browser_navigator.h"
59 #include "chrome/browser/ui/browser_tabrestore.h" 59 #include "chrome/browser/ui/browser_tabrestore.h"
60 #include "chrome/browser/ui/browser_tabstrip.h" 60 #include "chrome/browser/ui/browser_tabstrip.h"
61 #include "chrome/browser/ui/browser_window.h" 61 #include "chrome/browser/ui/browser_window.h"
62 #include "chrome/browser/ui/extensions/application_launch.h" 62 #include "chrome/browser/ui/extensions/application_launch.h"
63 #include "chrome/browser/ui/host_desktop.h" 63 #include "chrome/browser/ui/host_desktop.h"
64 #include "chrome/browser/ui/startup/autolaunch_prompt.h" 64 #include "chrome/browser/ui/startup/autolaunch_prompt.h"
65 #include "chrome/browser/ui/startup/bad_flags_prompt.h" 65 #include "chrome/browser/ui/startup/bad_flags_prompt.h"
66 #include "chrome/browser/ui/startup/default_browser_prompt.h" 66 #include "chrome/browser/ui/startup/default_browser_prompt.h"
67 #include "chrome/browser/ui/startup/google_api_keys_infobar_delegate.h" 67 #include "chrome/browser/ui/startup/google_api_keys_infobar_delegate.h"
68 #include "chrome/browser/ui/startup/obsolete_os_infobar_delegate.h" 68 #include "chrome/browser/ui/startup/obsolete_system_infobar_delegate.h"
69 #include "chrome/browser/ui/startup/session_crashed_infobar_delegate.h" 69 #include "chrome/browser/ui/startup/session_crashed_infobar_delegate.h"
70 #include "chrome/browser/ui/startup/startup_browser_creator.h" 70 #include "chrome/browser/ui/startup/startup_browser_creator.h"
71 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" 71 #include "chrome/browser/ui/tabs/pinned_tab_codec.h"
72 #include "chrome/browser/ui/tabs/tab_strip_model.h" 72 #include "chrome/browser/ui/tabs/tab_strip_model.h"
73 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" 73 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
74 #include "chrome/common/chrome_constants.h" 74 #include "chrome/common/chrome_constants.h"
75 #include "chrome/common/chrome_paths.h" 75 #include "chrome/common/chrome_paths.h"
76 #include "chrome/common/chrome_result_codes.h" 76 #include "chrome/common/chrome_result_codes.h"
77 #include "chrome/common/chrome_switches.h" 77 #include "chrome/common/chrome_switches.h"
78 #include "chrome/common/chrome_version_info.h" 78 #include "chrome/common/chrome_version_info.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 SessionCrashedInfoBarDelegate::Create(browser); 895 SessionCrashedInfoBarDelegate::Create(browser);
896 896
897 // The below info bars are only added to the first profile which is launched. 897 // The below info bars are only added to the first profile which is launched.
898 // Other profiles might be restoring the browsing sessions asynchronously, 898 // Other profiles might be restoring the browsing sessions asynchronously,
899 // so we cannot add the info bars to the focused tabs here. 899 // so we cannot add the info bars to the focused tabs here.
900 if (is_process_startup == chrome::startup::IS_PROCESS_STARTUP && 900 if (is_process_startup == chrome::startup::IS_PROCESS_STARTUP &&
901 !command_line_.HasSwitch(switches::kTestType)) { 901 !command_line_.HasSwitch(switches::kTestType)) {
902 chrome::ShowBadFlagsPrompt(browser); 902 chrome::ShowBadFlagsPrompt(browser);
903 GoogleApiKeysInfoBarDelegate::Create(InfoBarService::FromWebContents( 903 GoogleApiKeysInfoBarDelegate::Create(InfoBarService::FromWebContents(
904 browser->tab_strip_model()->GetActiveWebContents())); 904 browser->tab_strip_model()->GetActiveWebContents()));
905 ObsoleteOSInfoBarDelegate::Create(InfoBarService::FromWebContents( 905 ObsoleteSystemInfoBarDelegate::Create(InfoBarService::FromWebContents(
906 browser->tab_strip_model()->GetActiveWebContents())); 906 browser->tab_strip_model()->GetActiveWebContents()));
907 907
908 #if !defined(OS_CHROMEOS) 908 #if !defined(OS_CHROMEOS)
909 if (!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) { 909 if (!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) {
910 // Generally, the default browser prompt should not be shown on first 910 // Generally, the default browser prompt should not be shown on first
911 // run. However, when the set-as-default dialog has been suppressed, we 911 // run. However, when the set-as-default dialog has been suppressed, we
912 // need to allow it. 912 // need to allow it.
913 if ((!is_first_run_ || 913 if ((!is_first_run_ ||
914 (browser_creator_ && 914 (browser_creator_ &&
915 browser_creator_->is_default_browser_dialog_suppressed())) && 915 browser_creator_->is_default_browser_dialog_suppressed())) &&
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 } 986 }
987 987
988 #if !defined(OS_WIN) 988 #if !defined(OS_WIN)
989 // static 989 // static
990 bool StartupBrowserCreatorImpl::OpenStartupURLsInExistingBrowser( 990 bool StartupBrowserCreatorImpl::OpenStartupURLsInExistingBrowser(
991 Profile* profile, 991 Profile* profile,
992 const std::vector<GURL>& startup_urls) { 992 const std::vector<GURL>& startup_urls) {
993 return false; 993 return false;
994 } 994 }
995 #endif 995 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698