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

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

Issue 2559323002: Add a policy to always show the Cast toolbar icon (Closed)
Patch Set: Rebase Created 3 years, 10 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_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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 std::string()); 384 std::string());
385 #if BUILDFLAG(ENABLE_PRINTING) 385 #if BUILDFLAG(ENABLE_PRINTING)
386 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); 386 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true);
387 #endif 387 #endif
388 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); 388 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false);
389 registry->RegisterStringPref( 389 registry->RegisterStringPref(
390 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); 390 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string());
391 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); 391 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false);
392 #if defined(ENABLE_MEDIA_ROUTER) 392 #if defined(ENABLE_MEDIA_ROUTER)
393 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true); 393 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true);
394 #endif 394 #if !defined(OS_ANDROID)
395 registry->RegisterBooleanPref(prefs::kShowCastIconInToolbar, false);
396 #endif // !defined(OS_ANDROID)
397 #endif // defined(ENABLE_MEDIA_ROUTER)
395 // Initialize the cache prefs. 398 // Initialize the cache prefs.
396 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath()); 399 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath());
397 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0); 400 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0);
398 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0); 401 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0);
399 } 402 }
400 403
401 ProfileImpl::ProfileImpl( 404 ProfileImpl::ProfileImpl(
402 const base::FilePath& path, 405 const base::FilePath& path,
403 Delegate* delegate, 406 Delegate* delegate,
404 CreateMode create_mode, 407 CreateMode create_mode,
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1289 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1287 domain_reliability::DomainReliabilityService* service = 1290 domain_reliability::DomainReliabilityService* service =
1288 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1291 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1289 GetForBrowserContext(this); 1292 GetForBrowserContext(this);
1290 if (!service) 1293 if (!service)
1291 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); 1294 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>();
1292 1295
1293 return service->CreateMonitor( 1296 return service->CreateMonitor(
1294 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); 1297 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
1295 } 1298 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698