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

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

Issue 597933002: Restored disable print preview policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Sep 25 18:19:02 PDT 2014 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
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 registry->RegisterStringPref(prefs::kHomePage, 370 registry->RegisterStringPref(prefs::kHomePage,
371 std::string(), 371 std::string(),
372 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 372 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
373 #if defined(ENABLE_PRINTING) 373 #if defined(ENABLE_PRINTING)
374 registry->RegisterBooleanPref( 374 registry->RegisterBooleanPref(
375 prefs::kPrintingEnabled, 375 prefs::kPrintingEnabled,
376 true, 376 true,
377 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 377 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
378 #endif 378 #endif
379 registry->RegisterBooleanPref( 379 registry->RegisterBooleanPref(
380 prefs::kPrintPreviewDisabled,
381 false,
382 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
383 registry->RegisterBooleanPref(
380 prefs::kForceEphemeralProfiles, 384 prefs::kForceEphemeralProfiles,
381 false, 385 false,
382 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 386 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
383 387
384 // Initialize the cache prefs. 388 // Initialize the cache prefs.
385 registry->RegisterFilePathPref( 389 registry->RegisterFilePathPref(
386 prefs::kDiskCacheDir, 390 prefs::kDiskCacheDir,
387 base::FilePath(), 391 base::FilePath(),
388 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 392 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
389 registry->RegisterIntegerPref( 393 registry->RegisterIntegerPref(
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1452 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1449 GetForBrowserContext(this); 1453 GetForBrowserContext(this);
1450 if (!service) 1454 if (!service)
1451 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); 1455 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>();
1452 1456
1453 return service->CreateMonitor( 1457 return service->CreateMonitor(
1454 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), 1458 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
1455 local_state, 1459 local_state,
1456 prefs::kMetricsReportingEnabled); 1460 prefs::kMetricsReportingEnabled);
1457 } 1461 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store.cc ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698