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

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: Created 4 years 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 home_page_flags); 382 home_page_flags);
383 #if BUILDFLAG(ENABLE_PRINTING) 383 #if BUILDFLAG(ENABLE_PRINTING)
384 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true); 384 registry->RegisterBooleanPref(prefs::kPrintingEnabled, true);
385 #endif 385 #endif
386 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false); 386 registry->RegisterBooleanPref(prefs::kPrintPreviewDisabled, false);
387 registry->RegisterStringPref( 387 registry->RegisterStringPref(
388 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string()); 388 prefs::kPrintPreviewDefaultDestinationSelectionRules, std::string());
389 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); 389 registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false);
390 #if defined(ENABLE_MEDIA_ROUTER) 390 #if defined(ENABLE_MEDIA_ROUTER)
391 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true); 391 registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true);
392 #endif 392 #if !defined(OS_ANDROID)
393 registry->RegisterBooleanPref(prefs::kShowCastIconInToolbar, false);
394 #endif // !defined(OS_ANDROID)
395 #endif // defined(ENABLE_MEDIA_ROUTER)
393 // Initialize the cache prefs. 396 // Initialize the cache prefs.
394 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath()); 397 registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath());
395 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0); 398 registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0);
396 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0); 399 registry->RegisterIntegerPref(prefs::kMediaCacheSize, 0);
397 } 400 }
398 401
399 ProfileImpl::ProfileImpl( 402 ProfileImpl::ProfileImpl(
400 const base::FilePath& path, 403 const base::FilePath& path,
401 Delegate* delegate, 404 Delegate* delegate,
402 CreateMode create_mode, 405 CreateMode create_mode,
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1278 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1276 domain_reliability::DomainReliabilityService* service = 1279 domain_reliability::DomainReliabilityService* service =
1277 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1280 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1278 GetForBrowserContext(this); 1281 GetForBrowserContext(this);
1279 if (!service) 1282 if (!service)
1280 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); 1283 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>();
1281 1284
1282 return service->CreateMonitor( 1285 return service->CreateMonitor(
1283 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); 1286 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
1284 } 1287 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698