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

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

Issue 11953021: Don't show the apps page on the NTP if the app launcher is installed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move getShouldShowApps message to onLoad. Created 7 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 | « no previous file | chrome/browser/extensions/app_launcher.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 (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 #ifndef CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 10
11 class PrefServiceSimple;
12
11 namespace extensions { 13 namespace extensions {
12 14
13 // Called on the UI thread after determining if the launcher is enabled. A 15 // Called on the UI thread after determining if the launcher is enabled. A
14 // boolean flag is passed, which is true if the app launcher is enabled. 16 // boolean flag is passed, which is true if the app launcher is enabled.
15 typedef base::Callback<void(bool)> OnAppLauncherEnabledCompleted; 17 typedef base::Callback<void(bool)> OnAppLauncherEnabledCompleted;
16 18
17 // Determine whether the app launcher is enabled or not. This may involve a trip 19 // Determine whether the app launcher is enabled or not. This may involve a trip
18 // to a blocking thread. |completion_callback| is called when an answer is 20 // to a blocking thread. |completion_callback| is called when an answer is
19 // ready. This needs to be called on the UI thread. 21 // ready. This needs to be called on the UI thread.
20 void GetIsAppLauncherEnabled( 22 void UpdateIsAppLauncherEnabled(
21 const OnAppLauncherEnabledCompleted& completion_callback); 23 const OnAppLauncherEnabledCompleted& completion_callback);
22 24
25 // returns value of pref. 'was app launcher enabled last time i checked'.
26 bool IsAppLauncherEnabled();
27
28 namespace app_launcher {
29 void RegisterPrefs(PrefServiceSimple* pref_service);
30 }
31
23 } // namespace extensions 32 } // namespace extensions
24 33
25 #endif // CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_ 34 #endif // CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698