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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 #if defined(OS_IOS) || defined (OS_ANDROID) | 319 #if defined(OS_IOS) || defined (OS_ANDROID) |
320 NOTIMPLEMENTED(); | 320 NOTIMPLEMENTED(); |
321 return NULL; | 321 return NULL; |
322 #else | 322 #else |
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( | |
330 const CommandLine& command_line) { | |
331 } | |
332 | |
333 bool TestingBrowserProcess::created_local_state() const { | 329 bool TestingBrowserProcess::created_local_state() const { |
334 return (local_state_ != NULL); | 330 return (local_state_ != NULL); |
335 } | 331 } |
336 | 332 |
337 void TestingBrowserProcess::SetBookmarkPromptController( | 333 void TestingBrowserProcess::SetBookmarkPromptController( |
338 BookmarkPromptController* controller) { | 334 BookmarkPromptController* controller) { |
339 #if !defined(OS_IOS) | 335 #if !defined(OS_IOS) |
340 bookmark_prompt_controller_.reset(controller); | 336 bookmark_prompt_controller_.reset(controller); |
341 #endif | 337 #endif |
342 } | 338 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 #endif | 379 #endif |
384 } | 380 } |
385 | 381 |
386 void TestingBrowserProcess::SetSafeBrowsingService( | 382 void TestingBrowserProcess::SetSafeBrowsingService( |
387 SafeBrowsingService* sb_service) { | 383 SafeBrowsingService* sb_service) { |
388 #if !defined(OS_IOS) | 384 #if !defined(OS_IOS) |
389 NOTIMPLEMENTED(); | 385 NOTIMPLEMENTED(); |
390 sb_service_ = sb_service; | 386 sb_service_ = sb_service; |
391 #endif | 387 #endif |
392 } | 388 } |
OLD | NEW |