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

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

Issue 488853002: Removed --disable-print-preview switch and policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 registry->RegisterStringPref(prefs::kHomePage, 383 registry->RegisterStringPref(prefs::kHomePage,
384 std::string(), 384 std::string(),
385 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 385 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
386 #if defined(ENABLE_PRINTING) 386 #if defined(ENABLE_PRINTING)
387 registry->RegisterBooleanPref( 387 registry->RegisterBooleanPref(
388 prefs::kPrintingEnabled, 388 prefs::kPrintingEnabled,
389 true, 389 true,
390 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 390 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
391 #endif 391 #endif
392 registry->RegisterBooleanPref( 392 registry->RegisterBooleanPref(
393 prefs::kPrintPreviewDisabled,
394 false,
395 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
396 registry->RegisterBooleanPref(
397 prefs::kForceEphemeralProfiles, 393 prefs::kForceEphemeralProfiles,
398 false, 394 false,
399 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 395 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
400 396
401 // Initialize the cache prefs. 397 // Initialize the cache prefs.
402 registry->RegisterFilePathPref( 398 registry->RegisterFilePathPref(
403 prefs::kDiskCacheDir, 399 prefs::kDiskCacheDir,
404 base::FilePath(), 400 base::FilePath(),
405 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 401 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
406 registry->RegisterIntegerPref( 402 registry->RegisterIntegerPref(
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 ProfileImpl::CreateDomainReliabilityMonitor() { 1453 ProfileImpl::CreateDomainReliabilityMonitor() {
1458 domain_reliability::DomainReliabilityService* service = 1454 domain_reliability::DomainReliabilityService* service =
1459 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1455 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1460 GetForBrowserContext(this); 1456 GetForBrowserContext(this);
1461 if (!service) 1457 if (!service)
1462 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); 1458 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>();
1463 1459
1464 return service->CreateMonitor( 1460 return service->CreateMonitor(
1465 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 1461 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
1466 } 1462 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_test.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