OLD | NEW |
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/test/base/testing_browser_process.h" | 5 #include "chrome/test/base/testing_browser_process.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 : notification_service_(content::NotificationService::Create()), | 68 : notification_service_(content::NotificationService::Create()), |
69 module_ref_count_(0), | 69 module_ref_count_(0), |
70 app_locale_("en"), | 70 app_locale_("en"), |
71 local_state_(NULL), | 71 local_state_(NULL), |
72 io_thread_(NULL), | 72 io_thread_(NULL), |
73 system_request_context_(NULL), | 73 system_request_context_(NULL), |
74 platform_part_(new TestingBrowserProcessPlatformPart()) { | 74 platform_part_(new TestingBrowserProcessPlatformPart()) { |
75 #if defined(ENABLE_EXTENSIONS) | 75 #if defined(ENABLE_EXTENSIONS) |
76 extensions_browser_client_.reset( | 76 extensions_browser_client_.reset( |
77 new extensions::ChromeExtensionsBrowserClient); | 77 new extensions::ChromeExtensionsBrowserClient); |
78 apps::AppsClient::Set(ChromeAppsClient::GetInstance()); | 78 extensions::AppsClient::Set(ChromeAppsClient::GetInstance()); |
79 extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get()); | 79 extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get()); |
80 #endif | 80 #endif |
81 } | 81 } |
82 | 82 |
83 TestingBrowserProcess::~TestingBrowserProcess() { | 83 TestingBrowserProcess::~TestingBrowserProcess() { |
84 EXPECT_FALSE(local_state_); | 84 EXPECT_FALSE(local_state_); |
85 #if defined(ENABLE_CONFIGURATION_POLICY) | 85 #if defined(ENABLE_CONFIGURATION_POLICY) |
86 SetBrowserPolicyConnector(NULL); | 86 SetBrowserPolicyConnector(NULL); |
87 #endif | 87 #endif |
88 #if defined(ENABLE_EXTENSIONS) | 88 #if defined(ENABLE_EXTENSIONS) |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 438 |
439 /////////////////////////////////////////////////////////////////////////////// | 439 /////////////////////////////////////////////////////////////////////////////// |
440 | 440 |
441 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { | 441 TestingBrowserProcessInitializer::TestingBrowserProcessInitializer() { |
442 TestingBrowserProcess::CreateInstance(); | 442 TestingBrowserProcess::CreateInstance(); |
443 } | 443 } |
444 | 444 |
445 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { | 445 TestingBrowserProcessInitializer::~TestingBrowserProcessInitializer() { |
446 TestingBrowserProcess::DeleteInstance(); | 446 TestingBrowserProcess::DeleteInstance(); |
447 } | 447 } |
OLD | NEW |