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

Side by Side Diff: chrome/browser/ui/startup/startup_browser_creator.h

Issue 2487553002: Moving new First Run to use per-profile value, rather than simply checking IsChromeFirstRun. (Closed)
Patch Set: Addressing pkasting feedback Created 4 years, 1 month 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
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 #ifndef CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ 5 #ifndef CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_
6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ 6 #define CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 bool show_main_browser_window() const { 98 bool show_main_browser_window() const {
99 return show_main_browser_window_; 99 return show_main_browser_window_;
100 } 100 }
101 101
102 // For faking that no profiles have been launched yet. 102 // For faking that no profiles have been launched yet.
103 static void ClearLaunchedProfilesForTesting(); 103 static void ClearLaunchedProfilesForTesting();
104 104
105 static void RegisterLocalStatePrefs(PrefRegistrySimple* registry); 105 static void RegisterLocalStatePrefs(PrefRegistrySimple* registry);
106 static void RegisterProfilePrefs(PrefRegistrySimple* registry);
106 107
107 private: 108 private:
108 friend class CloudPrintProxyPolicyTest; 109 friend class CloudPrintProxyPolicyTest;
109 friend class CloudPrintProxyPolicyStartupTest; 110 friend class CloudPrintProxyPolicyStartupTest;
110 friend class StartupBrowserCreatorImpl; 111 friend class StartupBrowserCreatorImpl;
111 // TODO(crbug.com/642442): Remove this when first_run_tabs gets refactored. 112 // TODO(crbug.com/642442): Remove this when first_run_tabs gets refactored.
112 friend class StartupTabProviderImpl; 113 friend class StartupTabProviderImpl;
113 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, 114 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest,
114 ReadingWasRestartedAfterNormalStart); 115 ReadingWasRestartedAfterNormalStart);
115 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, 116 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const base::CommandLine& command_line); 193 const base::CommandLine& command_line);
193 194
194 // Returns the profile that should be loaded on process startup when 195 // Returns the profile that should be loaded on process startup when
195 // GetStartupProfile() returns null. As with GetStartupProfile(), returning the 196 // GetStartupProfile() returns null. As with GetStartupProfile(), returning the
196 // guest profile means the caller should open the user manager. This may return 197 // guest profile means the caller should open the user manager. This may return
197 // null if neither any profile nor the user manager can be opened. 198 // null if neither any profile nor the user manager can be opened.
198 Profile* GetFallbackStartupProfile(); 199 Profile* GetFallbackStartupProfile();
199 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 200 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
200 201
201 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ 202 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698