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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 132203004: Remove window_snapshot.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing include Created 6 years, 11 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
« no previous file with comments | « chrome/browser/prefs/browser_prefs.h ('k') | chrome/browser/ui/ash/screenshot_taker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/prefs/browser_prefs.h" 5 #include "chrome/browser/prefs/browser_prefs.h"
6 6
7 #include "apps/prefs.h" 7 #include "apps/prefs.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/prefs/pref_registry_simple.h" 9 #include "base/prefs/pref_registry_simple.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" 84 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
85 #include "chrome/browser/ui/startup/autolaunch_prompt.h" 85 #include "chrome/browser/ui/startup/autolaunch_prompt.h"
86 #include "chrome/browser/ui/startup/default_browser_prompt.h" 86 #include "chrome/browser/ui/startup/default_browser_prompt.h"
87 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" 87 #include "chrome/browser/ui/tabs/pinned_tab_codec.h"
88 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" 88 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h"
89 #include "chrome/browser/ui/webui/flags_ui.h" 89 #include "chrome/browser/ui/webui/flags_ui.h"
90 #include "chrome/browser/ui/webui/instant_ui.h" 90 #include "chrome/browser/ui/webui/instant_ui.h"
91 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 91 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
92 #include "chrome/browser/ui/webui/plugins_ui.h" 92 #include "chrome/browser/ui/webui/plugins_ui.h"
93 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" 93 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h"
94 #include "chrome/browser/ui/window_snapshot/window_snapshot.h"
95 #include "chrome/browser/upgrade_detector.h" 94 #include "chrome/browser/upgrade_detector.h"
96 #include "chrome/browser/web_resource/promo_resource_service.h" 95 #include "chrome/browser/web_resource/promo_resource_service.h"
97 #include "chrome/common/metrics/caching_permuted_entropy_provider.h" 96 #include "chrome/common/metrics/caching_permuted_entropy_provider.h"
98 #include "chrome/common/pref_names.h" 97 #include "chrome/common/pref_names.h"
99 #include "components/autofill/core/browser/autofill_manager.h" 98 #include "components/autofill/core/browser/autofill_manager.h"
100 #include "components/user_prefs/pref_registry_syncable.h" 99 #include "components/user_prefs/pref_registry_syncable.h"
101 #include "content/public/browser/render_process_host.h" 100 #include "content/public/browser/render_process_host.h"
102 101
103 #if defined(ENABLE_AUTOFILL_DIALOG) 102 #if defined(ENABLE_AUTOFILL_DIALOG)
104 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 103 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 } 471 }
473 472
474 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 473 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
475 RegisterProfilePrefs(registry); 474 RegisterProfilePrefs(registry);
476 475
477 #if defined(OS_CHROMEOS) 476 #if defined(OS_CHROMEOS)
478 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); 477 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry);
479 #endif 478 #endif
480 } 479 }
481 480
481 void RegisterScreenshotPrefs(PrefRegistrySimple* registry) {
482 registry->RegisterBooleanPref(prefs::kDisableScreenshots, false);
483 }
484
482 #if defined(OS_CHROMEOS) 485 #if defined(OS_CHROMEOS)
483 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 486 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
484 RegisterProfilePrefs(registry); 487 RegisterProfilePrefs(registry);
485 488
486 chromeos::PowerPrefs::RegisterLoginProfilePrefs(registry); 489 chromeos::PowerPrefs::RegisterLoginProfilePrefs(registry);
487 } 490 }
488 #endif 491 #endif
489 492
490 void MigrateUserPrefs(Profile* profile) { 493 void MigrateUserPrefs(Profile* profile) {
491 PrefService* prefs = profile->GetPrefs(); 494 PrefService* prefs = profile->GetPrefs();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, 569 local_state->SetInteger(prefs::kMultipleProfilePrefMigration,
567 current_version); 570 current_version);
568 } 571 }
569 572
570 #if defined(OS_CHROMEOS) 573 #if defined(OS_CHROMEOS)
571 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); 574 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state);
572 #endif 575 #endif
573 } 576 }
574 577
575 } // namespace chrome 578 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.h ('k') | chrome/browser/ui/ash/screenshot_taker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698