| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 FilePath internal_dir; | 371 FilePath internal_dir; |
| 372 PathService::Get(chrome::DIR_INTERNAL_PLUGINS, &internal_dir); | 372 PathService::Get(chrome::DIR_INTERNAL_PLUGINS, &internal_dir); |
| 373 prefs->RegisterFilePathPref(prefs::kPluginsLastInternalDirectory, | 373 prefs->RegisterFilePathPref(prefs::kPluginsLastInternalDirectory, |
| 374 internal_dir); | 374 internal_dir, |
| 375 false /* don't sync pref */); |
| 375 | 376 |
| 376 prefs->RegisterListPref(prefs::kPluginsDisabledPlugins); | 377 prefs->RegisterListPref(prefs::kPluginsDisabledPlugins, |
| 377 prefs->RegisterListPref(prefs::kPluginsDisabledPluginsExceptions); | 378 false /* don't sync pref */); |
| 378 prefs->RegisterListPref(prefs::kPluginsEnabledPlugins); | 379 prefs->RegisterListPref(prefs::kPluginsDisabledPluginsExceptions, |
| 379 prefs->RegisterListPref(prefs::kPluginsPluginsList); | 380 false /* don't sync pref */); |
| 380 prefs->RegisterBooleanPref(prefs::kPluginsEnabledInternalPDF, false); | 381 prefs->RegisterListPref(prefs::kPluginsEnabledPlugins, |
| 381 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails, false); | 382 false /* don't sync pref */); |
| 382 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar, true); | 383 prefs->RegisterListPref(prefs::kPluginsPluginsList, |
| 384 false /* don't sync pref */); |
| 385 prefs->RegisterBooleanPref(prefs::kPluginsEnabledInternalPDF, |
| 386 false, |
| 387 false /* don't sync pref */); |
| 388 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails, |
| 389 false, |
| 390 false /* don't sync pref */); |
| 391 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar, |
| 392 true, |
| 393 false /* don't sync pref */); |
| 383 } | 394 } |
| OLD | NEW |