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/string_util.h" | 7 #include "base/string_util.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 BookmarkPromptController* TestingBrowserProcess::bookmark_prompt_controller() { | 279 BookmarkPromptController* TestingBrowserProcess::bookmark_prompt_controller() { |
280 #if defined(OS_IOS) | 280 #if defined(OS_IOS) |
281 NOTIMPLEMENTED(); | 281 NOTIMPLEMENTED(); |
282 return NULL; | 282 return NULL; |
283 #else | 283 #else |
284 return bookmark_prompt_controller_.get(); | 284 return bookmark_prompt_controller_.get(); |
285 #endif | 285 #endif |
286 } | 286 } |
287 | 287 |
| 288 void TestingBrowserProcess::PlatformSpecificCommandLineProcessing( |
| 289 const CommandLine& command_line) { |
| 290 } |
| 291 |
288 void TestingBrowserProcess::SetBookmarkPromptController( | 292 void TestingBrowserProcess::SetBookmarkPromptController( |
289 BookmarkPromptController* controller) { | 293 BookmarkPromptController* controller) { |
290 #if !defined(OS_IOS) | 294 #if !defined(OS_IOS) |
291 bookmark_prompt_controller_.reset(controller); | 295 bookmark_prompt_controller_.reset(controller); |
292 #endif | 296 #endif |
293 } | 297 } |
294 | 298 |
295 void TestingBrowserProcess::SetSystemRequestContext( | 299 void TestingBrowserProcess::SetSystemRequestContext( |
296 net::URLRequestContextGetter* context_getter) { | 300 net::URLRequestContextGetter* context_getter) { |
297 system_request_context_ = context_getter; | 301 system_request_context_ = context_getter; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 #endif | 337 #endif |
334 } | 338 } |
335 | 339 |
336 void TestingBrowserProcess::SetSafeBrowsingService( | 340 void TestingBrowserProcess::SetSafeBrowsingService( |
337 SafeBrowsingService* sb_service) { | 341 SafeBrowsingService* sb_service) { |
338 #if !defined(OS_IOS) | 342 #if !defined(OS_IOS) |
339 NOTIMPLEMENTED(); | 343 NOTIMPLEMENTED(); |
340 sb_service_ = sb_service; | 344 sb_service_ = sb_service; |
341 #endif | 345 #endif |
342 } | 346 } |
OLD | NEW |