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

Side by Side Diff: chrome/browser/ui/webui/plugins_ui.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix. And rebase Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/extension_settings_handler.cc ('k') | chrome/browser/web_resource/promo_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698