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/browser/profiles/profile.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 std::string(), | 186 std::string(), |
187 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 187 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
188 #endif | 188 #endif |
189 | 189 |
190 #if defined(OS_ANDROID) | 190 #if defined(OS_ANDROID) |
191 registry->RegisterBooleanPref( | 191 registry->RegisterBooleanPref( |
192 prefs::kDevToolsRemoteEnabled, | 192 prefs::kDevToolsRemoteEnabled, |
193 false, | 193 false, |
194 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 194 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
195 #endif | 195 #endif |
196 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 196 |
197 data_reduction_proxy::RegisterSyncableProfilePrefs(registry); | 197 data_reduction_proxy::RegisterSyncableProfilePrefs(registry); |
198 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) | 198 |
199 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && !defined(OS_IOS) | 199 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && !defined(OS_IOS) |
200 // Preferences related to the avatar bubble and user manager tutorials. | 200 // Preferences related to the avatar bubble and user manager tutorials. |
201 registry->RegisterIntegerPref( | 201 registry->RegisterIntegerPref( |
202 prefs::kProfileAvatarTutorialShown, | 202 prefs::kProfileAvatarTutorialShown, |
203 0, | 203 0, |
204 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 204 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
205 #endif | 205 #endif |
206 } | 206 } |
207 | 207 |
208 std::string Profile::GetDebugName() { | 208 std::string Profile::GetDebugName() { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 content::NotificationService::NoDetails()); | 251 content::NotificationService::NoDetails()); |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 bool ProfileCompare::operator()(Profile* a, Profile* b) const { | 255 bool ProfileCompare::operator()(Profile* a, Profile* b) const { |
256 DCHECK(a && b); | 256 DCHECK(a && b); |
257 if (a->IsSameProfile(b)) | 257 if (a->IsSameProfile(b)) |
258 return false; | 258 return false; |
259 return a->GetOriginalProfile() < b->GetOriginalProfile(); | 259 return a->GetOriginalProfile() < b->GetOriginalProfile(); |
260 } | 260 } |
OLD | NEW |