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

Side by Side Diff: chrome/browser/browser_process_impl.h

Issue 2528013002: Initialize the message center as part of the testing browser process (Closed)
Patch Set: re-uploding due to time outs Created 4 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
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 // When each service is created, we set a flag indicating this. At this point, 5 // When each service is created, we set a flag indicating this. At this point,
6 // the service initialization could fail or succeed. This allows us to remember 6 // the service initialization could fail or succeed. This allows us to remember
7 // if we tried to create a service, and not try creating it over and over if 7 // if we tried to create a service, and not try creating it over and over if
8 // the creation failed. 8 // the creation failed.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 network_time::NetworkTimeTracker* network_time_tracker() override; 153 network_time::NetworkTimeTracker* network_time_tracker() override;
154 gcm::GCMDriver* gcm_driver() override; 154 gcm::GCMDriver* gcm_driver() override;
155 memory::TabManager* GetTabManager() override; 155 memory::TabManager* GetTabManager() override;
156 shell_integration::DefaultWebClientState CachedDefaultWebClientState() 156 shell_integration::DefaultWebClientState CachedDefaultWebClientState()
157 override; 157 override;
158 PhysicalWebDataSource* GetPhysicalWebDataSource() override; 158 PhysicalWebDataSource* GetPhysicalWebDataSource() override;
159 159
160 static void RegisterPrefs(PrefRegistrySimple* registry); 160 static void RegisterPrefs(PrefRegistrySimple* registry);
161 161
162 private: 162 private:
163 friend class BrowserProcessImplTest;
164
165 BrowserProcessImpl(base::SequencedTaskRunner* local_state_task_runner,
166 const base::CommandLine& command_line,
167 bool initialize_message_center);
163 // KeepAliveStateObserver implementation 168 // KeepAliveStateObserver implementation
164 void OnKeepAliveStateChanged(bool is_keeping_alive) override; 169 void OnKeepAliveStateChanged(bool is_keeping_alive) override;
165 void OnKeepAliveRestartStateChanged(bool can_restart) override; 170 void OnKeepAliveRestartStateChanged(bool can_restart) override;
166 171
167 void CreateWatchdogThread(); 172 void CreateWatchdogThread();
168 void CreateProfileManager(); 173 void CreateProfileManager();
169 void CreateLocalState(); 174 void CreateLocalState();
170 void CreateViewedPageTracker(); 175 void CreateViewedPageTracker();
171 void CreateIconManager(); 176 void CreateIconManager();
172 void CreateIntranetRedirectDetector(); 177 void CreateIntranetRedirectDetector();
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) 348 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
344 // Any change to this #ifdef must be reflected as well in 349 // Any change to this #ifdef must be reflected as well in
345 // chrome/browser/memory/tab_manager_browsertest.cc 350 // chrome/browser/memory/tab_manager_browsertest.cc
346 std::unique_ptr<memory::TabManager> tab_manager_; 351 std::unique_ptr<memory::TabManager> tab_manager_;
347 #endif 352 #endif
348 353
349 shell_integration::DefaultWebClientState cached_default_web_client_state_; 354 shell_integration::DefaultWebClientState cached_default_web_client_state_;
350 355
351 std::unique_ptr<PhysicalWebDataSource> physical_web_data_source_; 356 std::unique_ptr<PhysicalWebDataSource> physical_web_data_source_;
352 357
358 // Whether to skip initialization of the global message center
359 // used in some tests.
360 bool initialize_message_center_;
361
353 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 362 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
354 }; 363 };
355 364
356 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 365 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/background/background_mode_manager_unittest.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698