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

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

Issue 480513004: Stopping the history recording for a supervised user (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made documentation clearer. Created 6 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 true, 313 true,
314 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 314 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
315 registry->RegisterBooleanPref( 315 registry->RegisterBooleanPref(
316 prefs::kSigninAllowed, 316 prefs::kSigninAllowed,
317 true, 317 true,
318 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 318 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
319 registry->RegisterBooleanPref( 319 registry->RegisterBooleanPref(
320 prefs::kForceSafeSearch, 320 prefs::kForceSafeSearch,
321 false, 321 false,
322 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 322 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
323 registry->RegisterBooleanPref(
324 prefs::kRecordHistory,
325 false,
326 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
323 registry->RegisterIntegerPref( 327 registry->RegisterIntegerPref(
324 prefs::kProfileAvatarIndex, 328 prefs::kProfileAvatarIndex,
325 -1, 329 -1,
326 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 330 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
327 // Whether a profile is using an avatar without having explicitely chosen it 331 // Whether a profile is using an avatar without having explicitely chosen it
328 // (i.e. was assigned by default by legacy profile creation). 332 // (i.e. was assigned by default by legacy profile creation).
329 registry->RegisterBooleanPref( 333 registry->RegisterBooleanPref(
330 prefs::kProfileUsingDefaultAvatar, 334 prefs::kProfileUsingDefaultAvatar,
331 true, 335 true,
332 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 336 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1435 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1432 GetForBrowserContext(this); 1436 GetForBrowserContext(this);
1433 if (!service) 1437 if (!service)
1434 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); 1438 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>();
1435 1439
1436 return service->CreateMonitor( 1440 return service->CreateMonitor(
1437 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 1441 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
1438 local_state, 1442 local_state,
1439 prefs::kMetricsReportingEnabled); 1443 prefs::kMetricsReportingEnabled);
1440 } 1444 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/supervised_user/supervised_user_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698