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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/app_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_launcher.h
diff --git a/chrome/browser/extensions/app_launcher.h b/chrome/browser/extensions/app_launcher.h
index 5710a4e87060fff36b016e33a5fe5d29318461dd..8a4b062d9fe77ae9a05e2aec694610adf10a24d6 100644
--- a/chrome/browser/extensions/app_launcher.h
+++ b/chrome/browser/extensions/app_launcher.h
@@ -8,6 +8,8 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
+class PrefServiceSimple;
+
namespace extensions {
// Called on the UI thread after determining if the launcher is enabled. A
@@ -17,9 +19,16 @@ typedef base::Callback<void(bool)> OnAppLauncherEnabledCompleted;
// Determine whether the app launcher is enabled or not. This may involve a trip
// to a blocking thread. |completion_callback| is called when an answer is
// ready. This needs to be called on the UI thread.
-void GetIsAppLauncherEnabled(
+void UpdateIsAppLauncherEnabled(
const OnAppLauncherEnabledCompleted& completion_callback);
+// returns value of pref. 'was app launcher enabled last time i checked'.
+bool IsAppLauncherEnabled();
+
+namespace app_launcher {
+void RegisterPrefs(PrefServiceSimple* pref_service);
+}
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_
« 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