| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/browser/google/google_url_tracker.h" | 8 #include "chrome/browser/google/google_url_tracker.h" |
| 9 #include "chrome/browser/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 prerender::PrerenderTracker* TestingBrowserProcess::prerender_tracker() { | 225 prerender::PrerenderTracker* TestingBrowserProcess::prerender_tracker() { |
| 226 if (!prerender_tracker_.get()) | 226 if (!prerender_tracker_.get()) |
| 227 prerender_tracker_.reset(new prerender::PrerenderTracker()); | 227 prerender_tracker_.reset(new prerender::PrerenderTracker()); |
| 228 return prerender_tracker_.get(); | 228 return prerender_tracker_.get(); |
| 229 } | 229 } |
| 230 | 230 |
| 231 MHTMLGenerationManager* TestingBrowserProcess::mhtml_generation_manager() { | 231 MHTMLGenerationManager* TestingBrowserProcess::mhtml_generation_manager() { |
| 232 return NULL; | 232 return NULL; |
| 233 } | 233 } |
| 234 | 234 |
| 235 GpuBlacklistUpdater* TestingBrowserProcess::gpu_blacklist_updater() { | |
| 236 return NULL; | |
| 237 } | |
| 238 | |
| 239 ComponentUpdateService* TestingBrowserProcess::component_updater() { | 235 ComponentUpdateService* TestingBrowserProcess::component_updater() { |
| 240 return NULL; | 236 return NULL; |
| 241 } | 237 } |
| 242 | 238 |
| 243 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { | 239 CRLSetFetcher* TestingBrowserProcess::crl_set_fetcher() { |
| 244 return NULL; | 240 return NULL; |
| 245 } | 241 } |
| 246 | 242 |
| 247 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { | 243 void TestingBrowserProcess::SetLocalState(PrefService* local_state) { |
| 248 if (!local_state && notification_ui_manager_.get()) | 244 if (!local_state && notification_ui_manager_.get()) |
| 249 notification_ui_manager_.reset(); // Used local_state_. | 245 notification_ui_manager_.reset(); // Used local_state_. |
| 250 local_state_ = local_state; | 246 local_state_ = local_state; |
| 251 } | 247 } |
| 252 | 248 |
| 253 void TestingBrowserProcess::SetGoogleURLTracker( | 249 void TestingBrowserProcess::SetGoogleURLTracker( |
| 254 GoogleURLTracker* google_url_tracker) { | 250 GoogleURLTracker* google_url_tracker) { |
| 255 google_url_tracker_.reset(google_url_tracker); | 251 google_url_tracker_.reset(google_url_tracker); |
| 256 } | 252 } |
| 257 | 253 |
| 258 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { | 254 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { |
| 259 io_thread_ = io_thread; | 255 io_thread_ = io_thread; |
| 260 } | 256 } |
| 261 | 257 |
| 262 void TestingBrowserProcess::SetBrowserPolicyConnector( | 258 void TestingBrowserProcess::SetBrowserPolicyConnector( |
| 263 policy::BrowserPolicyConnector* connector) { | 259 policy::BrowserPolicyConnector* connector) { |
| 264 browser_policy_connector_.reset(connector); | 260 browser_policy_connector_.reset(connector); |
| 265 } | 261 } |
| OLD | NEW |