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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 634
635 ChromeContentBrowserClient::~ChromeContentBrowserClient() { 635 ChromeContentBrowserClient::~ChromeContentBrowserClient() {
636 for (int i = static_cast<int>(extra_parts_.size()) - 1; i >= 0; --i) 636 for (int i = static_cast<int>(extra_parts_.size()) - 1; i >= 0; --i)
637 delete extra_parts_[i]; 637 delete extra_parts_[i];
638 extra_parts_.clear(); 638 extra_parts_.clear();
639 } 639 }
640 640
641 // static 641 // static
642 void ChromeContentBrowserClient::RegisterProfilePrefs( 642 void ChromeContentBrowserClient::RegisterProfilePrefs(
643 user_prefs::PrefRegistrySyncable* registry) { 643 user_prefs::PrefRegistrySyncable* registry) {
644 registry->RegisterBooleanPref( 644 registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
645 prefs::kDisable3DAPIs, 645 registry->RegisterBooleanPref(prefs::kEnableHyperlinkAuditing, true);
646 false, 646 registry->RegisterListPref(prefs::kEnableDeprecatedWebPlatformFeatures);
647 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
648 registry->RegisterBooleanPref(
649 prefs::kEnableHyperlinkAuditing,
650 true,
651 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
652 registry->RegisterListPref(
653 prefs::kEnableDeprecatedWebPlatformFeatures,
654 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
655 } 647 }
656 648
657 // static 649 // static
658 void ChromeContentBrowserClient::SetApplicationLocale( 650 void ChromeContentBrowserClient::SetApplicationLocale(
659 const std::string& locale) { 651 const std::string& locale) {
660 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 652 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
661 653
662 // This object is guaranteed to outlive all threads so we don't have to 654 // This object is guaranteed to outlive all threads so we don't have to
663 // worry about the lack of refcounting and can just post as Unretained. 655 // worry about the lack of refcounting and can just post as Unretained.
664 // 656 //
(...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after
2450 switches::kDisableWebRtcEncryption, 2442 switches::kDisableWebRtcEncryption,
2451 }; 2443 };
2452 to_command_line->CopySwitchesFrom(from_command_line, 2444 to_command_line->CopySwitchesFrom(from_command_line,
2453 kWebRtcDevSwitchNames, 2445 kWebRtcDevSwitchNames,
2454 arraysize(kWebRtcDevSwitchNames)); 2446 arraysize(kWebRtcDevSwitchNames));
2455 } 2447 }
2456 } 2448 }
2457 #endif // defined(ENABLE_WEBRTC) 2449 #endif // defined(ENABLE_WEBRTC)
2458 2450
2459 } // namespace chrome 2451 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/chromeos/customization/customization_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698