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/string_util.h" | 8 #include "base/string_util.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 if (!media_file_system_registry_) | 323 if (!media_file_system_registry_) |
324 media_file_system_registry_.reset(new chrome::MediaFileSystemRegistry()); | 324 media_file_system_registry_.reset(new chrome::MediaFileSystemRegistry()); |
325 return media_file_system_registry_.get(); | 325 return media_file_system_registry_.get(); |
326 #endif | 326 #endif |
327 } | 327 } |
328 | 328 |
329 void TestingBrowserProcess::PlatformSpecificCommandLineProcessing( | 329 void TestingBrowserProcess::PlatformSpecificCommandLineProcessing( |
330 const CommandLine& command_line) { | 330 const CommandLine& command_line) { |
331 } | 331 } |
332 | 332 |
| 333 bool TestingBrowserProcess::created_local_state() const { |
| 334 return (local_state_ != NULL); |
| 335 } |
| 336 |
333 void TestingBrowserProcess::SetBookmarkPromptController( | 337 void TestingBrowserProcess::SetBookmarkPromptController( |
334 BookmarkPromptController* controller) { | 338 BookmarkPromptController* controller) { |
335 #if !defined(OS_IOS) | 339 #if !defined(OS_IOS) |
336 bookmark_prompt_controller_.reset(controller); | 340 bookmark_prompt_controller_.reset(controller); |
337 #endif | 341 #endif |
338 } | 342 } |
339 | 343 |
340 void TestingBrowserProcess::SetSystemRequestContext( | 344 void TestingBrowserProcess::SetSystemRequestContext( |
341 net::URLRequestContextGetter* context_getter) { | 345 net::URLRequestContextGetter* context_getter) { |
342 system_request_context_ = context_getter; | 346 system_request_context_ = context_getter; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 #endif | 390 #endif |
387 } | 391 } |
388 | 392 |
389 void TestingBrowserProcess::SetSafeBrowsingService( | 393 void TestingBrowserProcess::SetSafeBrowsingService( |
390 SafeBrowsingService* sb_service) { | 394 SafeBrowsingService* sb_service) { |
391 #if !defined(OS_IOS) | 395 #if !defined(OS_IOS) |
392 NOTIMPLEMENTED(); | 396 NOTIMPLEMENTED(); |
393 sb_service_ = sb_service; | 397 sb_service_ = sb_service; |
394 #endif | 398 #endif |
395 } | 399 } |
OLD | NEW |