| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 | 362 |
| 363 // static | 363 // static |
| 364 RefCountedMemory* PluginsUI::GetFaviconResourceBytes() { | 364 RefCountedMemory* PluginsUI::GetFaviconResourceBytes() { |
| 365 return ResourceBundle::GetSharedInstance(). | 365 return ResourceBundle::GetSharedInstance(). |
| 366 LoadDataResourceBytes(IDR_PLUGIN); | 366 LoadDataResourceBytes(IDR_PLUGIN); |
| 367 } | 367 } |
| 368 | 368 |
| 369 // static | 369 // static |
| 370 void PluginsUI::RegisterUserPrefs(PrefService* prefs) { | 370 void PluginsUI::RegisterUserPrefs(PrefService* prefs) { |
| 371 prefs->RegisterListPref(prefs::kPluginsPluginsList); | 371 prefs->RegisterListPref(prefs::kPluginsPluginsList, |
| 372 prefs->RegisterBooleanPref(prefs::kPluginsEnabledInternalPDF, false); | 372 PrefService::UNSYNCABLE_PREF); |
| 373 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails, false); | 373 prefs->RegisterBooleanPref(prefs::kPluginsEnabledInternalPDF, |
| 374 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar, true); | 374 false, |
| 375 PrefService::UNSYNCABLE_PREF); |
| 376 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails, |
| 377 false, |
| 378 PrefService::UNSYNCABLE_PREF); |
| 379 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar, |
| 380 true, |
| 381 PrefService::UNSYNCABLE_PREF); |
| 375 } | 382 } |
| OLD | NEW |