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

Side by Side Diff: chrome/browser/ui/webui/plugins_ui.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/ui/webui/plugins_ui.h" 5 #include "chrome/browser/ui/webui/plugins_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // static 514 // static
515 base::RefCountedMemory* PluginsUI::GetFaviconResourceBytes( 515 base::RefCountedMemory* PluginsUI::GetFaviconResourceBytes(
516 ui::ScaleFactor scale_factor) { 516 ui::ScaleFactor scale_factor) {
517 return ResourceBundle::GetSharedInstance(). 517 return ResourceBundle::GetSharedInstance().
518 LoadDataResourceBytesForScale(IDR_PLUGINS_FAVICON, scale_factor); 518 LoadDataResourceBytesForScale(IDR_PLUGINS_FAVICON, scale_factor);
519 } 519 }
520 520
521 // static 521 // static
522 void PluginsUI::RegisterProfilePrefs( 522 void PluginsUI::RegisterProfilePrefs(
523 user_prefs::PrefRegistrySyncable* registry) { 523 user_prefs::PrefRegistrySyncable* registry) {
524 registry->RegisterBooleanPref( 524 registry->RegisterBooleanPref(prefs::kPluginsShowDetails, false);
525 prefs::kPluginsShowDetails,
526 false,
527 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
528 registry->RegisterDictionaryPref( 525 registry->RegisterDictionaryPref(
529 prefs::kContentSettingsPluginWhitelist, 526 prefs::kContentSettingsPluginWhitelist,
530 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 527 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
531 } 528 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_handler.cc ('k') | chrome/browser/ui/webui/print_preview/sticky_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698