OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "chrome/browser/ui/app_list/test/fake_profile.h" | 6 #include "chrome/browser/ui/app_list/test/fake_profile.h" |
7 | 7 |
8 FakeProfile::FakeProfile(const std::string& name) | 8 FakeProfile::FakeProfile(const std::string& name) |
9 : name_(name) { | 9 : name_(name) { |
10 BrowserContext::Initialize(this, base::FilePath()); | 10 BrowserContext::Initialize(this, base::FilePath()); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 content::PermissionManager* FakeProfile::GetPermissionManager() { | 64 content::PermissionManager* FakeProfile::GetPermissionManager() { |
65 return nullptr; | 65 return nullptr; |
66 } | 66 } |
67 | 67 |
68 content::BackgroundSyncController* FakeProfile::GetBackgroundSyncController() { | 68 content::BackgroundSyncController* FakeProfile::GetBackgroundSyncController() { |
69 return nullptr; | 69 return nullptr; |
70 } | 70 } |
71 | 71 |
| 72 content::BrowsingDataRemoverDelegate* |
| 73 FakeProfile::GetBrowsingDataRemoverDelegate() { |
| 74 return nullptr; |
| 75 } |
| 76 |
72 net::URLRequestContextGetter* FakeProfile::CreateRequestContext( | 77 net::URLRequestContextGetter* FakeProfile::CreateRequestContext( |
73 content::ProtocolHandlerMap* protocol_handlers, | 78 content::ProtocolHandlerMap* protocol_handlers, |
74 content::URLRequestInterceptorScopedVector request_interceptors) { | 79 content::URLRequestInterceptorScopedVector request_interceptors) { |
75 return nullptr; | 80 return nullptr; |
76 } | 81 } |
77 | 82 |
78 net::URLRequestContextGetter* | 83 net::URLRequestContextGetter* |
79 FakeProfile::CreateRequestContextForStoragePartition( | 84 FakeProfile::CreateRequestContextForStoragePartition( |
80 const base::FilePath& partition_path, | 85 const base::FilePath& partition_path, |
81 bool in_memory, | 86 bool in_memory, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 203 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
199 return false; | 204 return false; |
200 } | 205 } |
201 | 206 |
202 void FakeProfile::SetExitType(ExitType exit_type) { | 207 void FakeProfile::SetExitType(ExitType exit_type) { |
203 } | 208 } |
204 | 209 |
205 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 210 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
206 return EXIT_NORMAL; | 211 return EXIT_NORMAL; |
207 } | 212 } |
OLD | NEW |