| 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 prefs->RegisterStringPref(prefs::kApplicationLocale, | 88 prefs->RegisterStringPref(prefs::kApplicationLocale, |
| 89 "", | 89 "", |
| 90 PrefService::SYNCABLE_PREF); | 90 PrefService::SYNCABLE_PREF); |
| 91 prefs->RegisterStringPref(prefs::kApplicationLocaleBackup, | 91 prefs->RegisterStringPref(prefs::kApplicationLocaleBackup, |
| 92 "", | 92 "", |
| 93 PrefService::UNSYNCABLE_PREF); | 93 PrefService::UNSYNCABLE_PREF); |
| 94 prefs->RegisterStringPref(prefs::kApplicationLocaleAccepted, | 94 prefs->RegisterStringPref(prefs::kApplicationLocaleAccepted, |
| 95 "", | 95 "", |
| 96 PrefService::UNSYNCABLE_PREF); | 96 PrefService::UNSYNCABLE_PREF); |
| 97 #endif | 97 #endif |
| 98 |
| 99 #if defined(OS_ANDROID) |
| 100 prefs->RegisterBooleanPref(prefs::kSpdyProxyEnabled, |
| 101 false, |
| 102 PrefService::UNSYNCABLE_PREF); |
| 103 #endif |
| 104 |
| 98 } | 105 } |
| 99 | 106 |
| 100 | 107 |
| 101 std::string Profile::GetDebugName() { | 108 std::string Profile::GetDebugName() { |
| 102 std::string name = GetPath().BaseName().MaybeAsASCII(); | 109 std::string name = GetPath().BaseName().MaybeAsASCII(); |
| 103 if (name.empty()) { | 110 if (name.empty()) { |
| 104 name = "UnknownProfile"; | 111 name = "UnknownProfile"; |
| 105 } | 112 } |
| 106 return name; | 113 return name; |
| 107 } | 114 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 124 | 131 |
| 125 void Profile::MaybeSendDestroyedNotification() { | 132 void Profile::MaybeSendDestroyedNotification() { |
| 126 if (!sent_destroyed_notification_) { | 133 if (!sent_destroyed_notification_) { |
| 127 sent_destroyed_notification_ = true; | 134 sent_destroyed_notification_ = true; |
| 128 content::NotificationService::current()->Notify( | 135 content::NotificationService::current()->Notify( |
| 129 chrome::NOTIFICATION_PROFILE_DESTROYED, | 136 chrome::NOTIFICATION_PROFILE_DESTROYED, |
| 130 content::Source<Profile>(this), | 137 content::Source<Profile>(this), |
| 131 content::NotificationService::NoDetails()); | 138 content::NotificationService::NoDetails()); |
| 132 } | 139 } |
| 133 } | 140 } |
| OLD | NEW |