Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 15716012: Add a Preference for Google Services to Use the User's Location (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 true, 75 true,
76 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 76 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
77 registry->RegisterBooleanPref( 77 registry->RegisterBooleanPref(
78 prefs::kSafeBrowsingReportingEnabled, 78 prefs::kSafeBrowsingReportingEnabled,
79 false, 79 false,
80 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 80 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
81 registry->RegisterBooleanPref( 81 registry->RegisterBooleanPref(
82 prefs::kSafeBrowsingProceedAnywayDisabled, 82 prefs::kSafeBrowsingProceedAnywayDisabled,
83 false, 83 false,
84 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 84 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
85 registry->RegisterBooleanPref( 85 registry->RegisterBooleanPref(
vadimt 2013/06/07 00:56:07 #ifdef?
robliao 2013/06/07 07:34:36 Done.
86 prefs::kComponentGeolocationEnabled,
vadimt 2013/06/07 00:56:07 Why do we have the 'Component' part of the name?
robliao 2013/06/07 07:34:36 This is to distinguish it from kGeolocationEnabled
robliao 2013/06/07 07:34:36 Done.
vadimt 2013/06/07 17:16:28 I see. But 'Component' implies component extension
robliao 2013/06/07 18:35:38 Changed to kGoogleGeolocationAccessEnabled On 2013
87 false,
88 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
89 registry->RegisterBooleanPref(
86 prefs::kDisableExtensions, 90 prefs::kDisableExtensions,
87 false, 91 false,
88 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 92 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
89 registry->RegisterBooleanPref( 93 registry->RegisterBooleanPref(
90 prefs::kExtensionAlertsInitializedPref, 94 prefs::kExtensionAlertsInitializedPref,
91 false, 95 false,
92 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 96 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
93 registry->RegisterStringPref( 97 registry->RegisterStringPref(
94 prefs::kSelectFileLastDirectory, 98 prefs::kSelectFileLastDirectory,
95 std::string(), 99 std::string(),
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 187
184 void Profile::MaybeSendDestroyedNotification() { 188 void Profile::MaybeSendDestroyedNotification() {
185 if (!sent_destroyed_notification_) { 189 if (!sent_destroyed_notification_) {
186 sent_destroyed_notification_ = true; 190 sent_destroyed_notification_ = true;
187 content::NotificationService::current()->Notify( 191 content::NotificationService::current()->Notify(
188 chrome::NOTIFICATION_PROFILE_DESTROYED, 192 chrome::NOTIFICATION_PROFILE_DESTROYED,
189 content::Source<Profile>(this), 193 content::Source<Profile>(this),
190 content::NotificationService::NoDetails()); 194 content::NotificationService::NoDetails());
191 } 195 }
192 } 196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698