OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |