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

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

Issue 11597010: Automate more Better Session Restore tests: Crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 #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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 void set_show_main_browser_window(bool show_main_browser_window) { 93 void set_show_main_browser_window(bool show_main_browser_window) {
94 show_main_browser_window_ = show_main_browser_window; 94 show_main_browser_window_ = show_main_browser_window;
95 } 95 }
96 96
97 bool show_main_browser_window() const { 97 bool show_main_browser_window() const {
98 return show_main_browser_window_; 98 return show_main_browser_window_;
99 } 99 }
100 100
101 // For faking that no profiles have been launched yet.
102 static void ClearLaunchedProfilesForTesting();
103
101 private: 104 private:
102 friend class CloudPrintProxyPolicyTest; 105 friend class CloudPrintProxyPolicyTest;
103 friend class CloudPrintProxyPolicyStartupTest; 106 friend class CloudPrintProxyPolicyStartupTest;
104 friend class StartupBrowserCreatorImpl; 107 friend class StartupBrowserCreatorImpl;
105 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, 108 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest,
106 ReadingWasRestartedAfterNormalStart); 109 ReadingWasRestartedAfterNormalStart);
107 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, 110 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest,
108 ReadingWasRestartedAfterRestart); 111 ReadingWasRestartedAfterRestart);
109 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, UpdateWithTwoProfiles); 112 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, UpdateWithTwoProfiles);
110 113
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 147
145 // True if we have already read and reset the preference kWasRestarted. (A 148 // True if we have already read and reset the preference kWasRestarted. (A
146 // member variable instead of a static variable inside WasRestarted because 149 // member variable instead of a static variable inside WasRestarted because
147 // of testing.) 150 // of testing.)
148 static bool was_restarted_read_; 151 static bool was_restarted_read_;
149 152
150 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator); 153 DISALLOW_COPY_AND_ASSIGN(StartupBrowserCreator);
151 }; 154 };
152 155
153 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_ 156 #endif // CHROME_BROWSER_UI_STARTUP_STARTUP_BROWSER_CREATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/better_session_restore_browsertest.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