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

Side by Side Diff: chrome/browser/extensions/app_launcher.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/extensions/app_launcher.h" 5 #include "chrome/browser/extensions/app_launcher.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h"
8 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
9 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/prefs/pref_registry_simple.h"
11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include "chrome/installer/launcher_support/chrome_launcher_support.h" 17 #include "chrome/installer/launcher_support/chrome_launcher_support.h"
18 #include "chrome/installer/util/browser_distribution.h" 18 #include "chrome/installer/util/browser_distribution.h"
19 #endif 19 #endif
20 20
21 namespace extensions { 21 namespace extensions {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Chrome ran. To avoid having the NTP block on a registry check, it guesses 112 // Chrome ran. To avoid having the NTP block on a registry check, it guesses
113 // that the value hasn't changed since last time it was checked, using this 113 // that the value hasn't changed since last time it was checked, using this
114 // preference. 114 // preference.
115 bool is_enabled = SynchronousAppLauncherChecks() == APP_LAUNCHER_ENABLED; 115 bool is_enabled = SynchronousAppLauncherChecks() == APP_LAUNCHER_ENABLED;
116 registry->RegisterBooleanPref(prefs::kAppLauncherIsEnabled, is_enabled); 116 registry->RegisterBooleanPref(prefs::kAppLauncherIsEnabled, is_enabled);
117 } 117 }
118 118
119 } // namespace app_launcher 119 } // namespace app_launcher
120 120
121 } // namespace extensions 121 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698