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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 #if defined(OS_ANDROID) | 111 #if defined(OS_ANDROID) |
112 registry->RegisterBooleanPref(prefs::kDevToolsRemoteEnabled, | 112 registry->RegisterBooleanPref(prefs::kDevToolsRemoteEnabled, |
113 false, | 113 false, |
114 PrefRegistrySyncable::UNSYNCABLE_PREF); | 114 PrefRegistrySyncable::UNSYNCABLE_PREF); |
115 #endif | 115 #endif |
116 #if defined(OS_ANDROID) || defined(OS_IOS) | 116 #if defined(OS_ANDROID) || defined(OS_IOS) |
117 registry->RegisterBooleanPref(prefs::kSpdyProxyAuthEnabled, | 117 registry->RegisterBooleanPref(prefs::kSpdyProxyAuthEnabled, |
118 false, | 118 false, |
119 PrefRegistrySyncable::UNSYNCABLE_PREF); | 119 PrefRegistrySyncable::UNSYNCABLE_PREF); |
120 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 120 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
121 #if defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS) | |
122 registry->RegisterBooleanPref(prefs::kEulaAccepted, | |
Alexei Svitkine (slow)
2013/04/18 17:38:31
I believe this is the wrong place to put this.
Th
| |
123 false, | |
124 PrefRegistrySyncable::UNSYNCABLE_PREF); | |
125 #endif // defined(OS_ANDROID) || defined(OS_IOS) || defined(OS_CHROMEOS) | |
121 } | 126 } |
122 | 127 |
123 | 128 |
124 std::string Profile::GetDebugName() { | 129 std::string Profile::GetDebugName() { |
125 std::string name = GetPath().BaseName().MaybeAsASCII(); | 130 std::string name = GetPath().BaseName().MaybeAsASCII(); |
126 if (name.empty()) { | 131 if (name.empty()) { |
127 name = "UnknownProfile"; | 132 name = "UnknownProfile"; |
128 } | 133 } |
129 return name; | 134 return name; |
130 } | 135 } |
(...skipping 25 matching lines...) Expand all Loading... | |
156 | 161 |
157 void Profile::MaybeSendDestroyedNotification() { | 162 void Profile::MaybeSendDestroyedNotification() { |
158 if (!sent_destroyed_notification_) { | 163 if (!sent_destroyed_notification_) { |
159 sent_destroyed_notification_ = true; | 164 sent_destroyed_notification_ = true; |
160 content::NotificationService::current()->Notify( | 165 content::NotificationService::current()->Notify( |
161 chrome::NOTIFICATION_PROFILE_DESTROYED, | 166 chrome::NOTIFICATION_PROFILE_DESTROYED, |
162 content::Source<Profile>(this), | 167 content::Source<Profile>(this), |
163 content::NotificationService::NoDetails()); | 168 content::NotificationService::NoDetails()); |
164 } | 169 } |
165 } | 170 } |
OLD | NEW |