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/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
164 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 164 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
165 #endif // defined(GOOGLE_CHROME_BUILD) | 165 #endif // defined(GOOGLE_CHROME_BUILD) |
166 registry->RegisterBooleanPref( | 166 registry->RegisterBooleanPref( |
167 prefs::kMediaRouterFirstRunFlowAcknowledged, | 167 prefs::kMediaRouterFirstRunFlowAcknowledged, |
168 false, | 168 false, |
169 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 169 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
170 #endif | 170 #endif |
171 | 171 |
172 #if defined(OS_CHROMEOS) | 172 #if defined(OS_CHROMEOS) |
173 registry->RegisterBooleanPref(prefs::kAllowScreenLock, true); | 173 registry->RegisterBooleanPref(prefs::kAllowScreenLock, true); |
174 registry->RegisterIntegerPref(prefs::kPinUnlockMinimumLength, 4); | |
jdufault
2016/09/30 01:05:51
0 default?
sammiequon
2016/09/30 18:38:36
Done.
| |
175 registry->RegisterIntegerPref(prefs::kPinUnlockMaximumLength, 0); | |
174 #endif | 176 #endif |
175 } | 177 } |
176 | 178 |
177 std::string Profile::GetDebugName() { | 179 std::string Profile::GetDebugName() { |
178 std::string name = GetPath().BaseName().MaybeAsASCII(); | 180 std::string name = GetPath().BaseName().MaybeAsASCII(); |
179 if (name.empty()) { | 181 if (name.empty()) { |
180 name = "UnknownProfile"; | 182 name = "UnknownProfile"; |
181 } | 183 } |
182 return name; | 184 return name; |
183 } | 185 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 if (a->IsSameProfile(b)) | 237 if (a->IsSameProfile(b)) |
236 return false; | 238 return false; |
237 return a->GetOriginalProfile() < b->GetOriginalProfile(); | 239 return a->GetOriginalProfile() < b->GetOriginalProfile(); |
238 } | 240 } |
239 | 241 |
240 double Profile::GetDefaultZoomLevelForProfile() { | 242 double Profile::GetDefaultZoomLevelForProfile() { |
241 return GetDefaultStoragePartition(this) | 243 return GetDefaultStoragePartition(this) |
242 ->GetHostZoomMap() | 244 ->GetHostZoomMap() |
243 ->GetDefaultZoomLevel(); | 245 ->GetDefaultZoomLevel(); |
244 } | 246 } |
OLD | NEW |