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 "chrome/browser/ui/app_list/test/fake_profile.h" | 5 #include "chrome/browser/ui/app_list/test/fake_profile.h" |
6 | 6 |
7 FakeProfile::FakeProfile(const std::string& name) | 7 FakeProfile::FakeProfile(const std::string& name) |
8 : name_(name) { | 8 : name_(name) { |
9 } | 9 } |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 } | 113 } |
114 | 114 |
115 ExtensionSpecialStoragePolicy* FakeProfile::GetExtensionSpecialStoragePolicy() { | 115 ExtensionSpecialStoragePolicy* FakeProfile::GetExtensionSpecialStoragePolicy() { |
116 return NULL; | 116 return NULL; |
117 } | 117 } |
118 | 118 |
119 PrefService* FakeProfile::GetPrefs() { | 119 PrefService* FakeProfile::GetPrefs() { |
120 return NULL; | 120 return NULL; |
121 } | 121 } |
122 | 122 |
123 const PrefService* FakeProfile::GetPrefs() const { | |
124 return NULL; | |
sky
2015/02/05 17:00:58
nullptr?
Ilya Sherman
2015/02/05 21:24:58
Done. Also replaced a bunch of other NULLs with n
| |
125 } | |
126 | |
123 PrefService* FakeProfile::GetOffTheRecordPrefs() { | 127 PrefService* FakeProfile::GetOffTheRecordPrefs() { |
124 return NULL; | 128 return NULL; |
125 } | 129 } |
126 | 130 |
127 net::URLRequestContextGetter* FakeProfile::GetRequestContext() { | 131 net::URLRequestContextGetter* FakeProfile::GetRequestContext() { |
128 return NULL; | 132 return NULL; |
129 } | 133 } |
130 | 134 |
131 net::URLRequestContextGetter* FakeProfile::GetRequestContextForExtensions() { | 135 net::URLRequestContextGetter* FakeProfile::GetRequestContextForExtensions() { |
132 return NULL; | 136 return NULL; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 204 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
201 return false; | 205 return false; |
202 } | 206 } |
203 | 207 |
204 void FakeProfile::SetExitType(ExitType exit_type) { | 208 void FakeProfile::SetExitType(ExitType exit_type) { |
205 } | 209 } |
206 | 210 |
207 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 211 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
208 return EXIT_NORMAL; | 212 return EXIT_NORMAL; |
209 } | 213 } |
OLD | NEW |