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

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

Issue 2643833002: Add a New Tab page location group policy (Closed)
Patch Set: CR Comments 1 Created 3 years, 11 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 | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/common/pref_names.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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 registry->RegisterStringPref(prefs::kSupervisedUserId, std::string()); 374 registry->RegisterStringPref(prefs::kSupervisedUserId, std::string());
375 #if defined(OS_IOS) || defined(OS_ANDROID) 375 #if defined(OS_IOS) || defined(OS_ANDROID)
376 uint32_t home_page_flags = PrefRegistry::NO_REGISTRATION_FLAGS; 376 uint32_t home_page_flags = PrefRegistry::NO_REGISTRATION_FLAGS;
377 #else 377 #else
378 uint32_t home_page_flags = user_prefs::PrefRegistrySyncable::SYNCABLE_PREF; 378 uint32_t home_page_flags = user_prefs::PrefRegistrySyncable::SYNCABLE_PREF;
379 #endif 379 #endif
380 registry->RegisterStringPref(prefs::kHomePage, 380 registry->RegisterStringPref(prefs::kHomePage,
381 std::string(), 381 std::string(),
382 home_page_flags); 382 home_page_flags);
383 registry->RegisterStringPref(prefs::kNewTabPageLocationOverride,
384 std::string());
383 #if BUILDFLAG(ENABLE_PRINTING) 385 #if BUILDFLAG(ENABLE_PRINTING)
384 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); 386 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true);
385 #endif 387 #endif
386 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); 388 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false);
387 registry->RegisterStringPref( 389 registry->RegisterStringPref(
388 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); 390 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string());
389 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); 391 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false);
390 #if defined(ENABLE_MEDIA_ROUTER) 392 #if defined(ENABLE_MEDIA_ROUTER)
391 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true); 393 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true);
392 #endif 394 #endif
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1286 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1285 domain_reliability::DomainReliabilityService* service = 1287 domain_reliability::DomainReliabilityService* service =
1286 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1288 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1287 GetForBrowserContext(this); 1289 GetForBrowserContext(this);
1288 if (!service) 1290 if (!service)
1289 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); 1291 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>();
1290 1292
1291 return service->CreateMonitor( 1293 return service->CreateMonitor(
1292 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); 1294 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
1293 } 1295 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698