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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 void TestingBrowserProcess::SetApplicationLocale( | 217 void TestingBrowserProcess::SetApplicationLocale( |
218 const std::string& app_locale) { | 218 const std::string& app_locale) { |
219 app_locale_ = app_locale; | 219 app_locale_ = app_locale; |
220 } | 220 } |
221 | 221 |
222 DownloadStatusUpdater* TestingBrowserProcess::download_status_updater() { | 222 DownloadStatusUpdater* TestingBrowserProcess::download_status_updater() { |
223 return NULL; | 223 return NULL; |
224 } | 224 } |
225 | 225 |
| 226 DownloadRequestLimiter* TestingBrowserProcess::download_request_limiter() { |
| 227 return NULL; |
| 228 } |
| 229 |
226 bool TestingBrowserProcess::plugin_finder_disabled() const { | 230 bool TestingBrowserProcess::plugin_finder_disabled() const { |
227 return false; | 231 return false; |
228 } | 232 } |
229 | 233 |
230 ChromeNetLog* TestingBrowserProcess::net_log() { | 234 ChromeNetLog* TestingBrowserProcess::net_log() { |
231 return NULL; | 235 return NULL; |
232 } | 236 } |
233 | 237 |
234 prerender::PrerenderTracker* TestingBrowserProcess::prerender_tracker() { | 238 prerender::PrerenderTracker* TestingBrowserProcess::prerender_tracker() { |
235 if (!prerender_tracker_.get()) | 239 if (!prerender_tracker_.get()) |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // in stages, and Windows is first. See below for more info. | 298 // in stages, and Windows is first. See below for more info. |
295 g_browser_process = NULL; | 299 g_browser_process = NULL; |
296 #else | 300 #else |
297 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 301 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
298 // After the transition is over, we should just | 302 // After the transition is over, we should just |
299 // reset |g_browser_process| to NULL. | 303 // reset |g_browser_process| to NULL. |
300 browser_process_.reset(); | 304 browser_process_.reset(); |
301 g_browser_process = new TestingBrowserProcess(); | 305 g_browser_process = new TestingBrowserProcess(); |
302 #endif | 306 #endif |
303 } | 307 } |
OLD | NEW |