summaryrefslogtreecommitdiffstats
path: root/apps/app_launcher.h
diff options
context:
space:
mode:
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-04 11:00:29 +0000
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-04 11:00:29 +0000
commitc821998d3ce51d37324dd961a47aa6f9ac6addbb (patch)
treee75e39c27b73f3176c057cf6c6e32f628f0b97b2 /apps/app_launcher.h
parent3639aa8ac2940346c1384b93366ec38dd987bfb3 (diff)
downloadchromium_src-c821998d3ce51d37324dd961a47aa6f9ac6addbb.zip
chromium_src-c821998d3ce51d37324dd961a47aa6f9ac6addbb.tar.gz
chromium_src-c821998d3ce51d37324dd961a47aa6f9ac6addbb.tar.bz2
Clean up async app launcher enabled checks.
The app launcher enable state no longer requires a registry check so we can remove all of the asynchronous apis that were in place for it. BUG= Review URL: https://chromiumcodereview.appspot.com/16172005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_launcher.h')
-rw-r--r--apps/app_launcher.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/apps/app_launcher.h b/apps/app_launcher.h
index 0ccc1bf..07f6b6e 100644
--- a/apps/app_launcher.h
+++ b/apps/app_launcher.h
@@ -9,31 +9,8 @@
namespace apps {
-// Called on the UI thread after determining if the launcher is enabled. A
-// boolean flag is passed, which is true if the app launcher is enabled.
-typedef base::Callback<void(bool)> OnAppLauncherEnabledCompleted;
-
-// TODO(calamity): Remove all the "uncertain" apis because windows app launcher
-// enabled is now just a single pref that we can check synchronously and with
-// confidence. This includes changing GetIsAppLauncherEnabled to a synchronous
-// API.
-
-// A synchronous check to determine if the app launcher is enabled. If the
-// registry needs to be determined to find an accurate answer, this function
-// will NOT do so; instead if will default to false (the app launcher is not
-// enabled).
-// This function does not use the cached preference of whether the launcher
-// was enabled or not.
-bool MaybeIsAppLauncherEnabled();
-
-// 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(
- const OnAppLauncherEnabledCompleted& completion_callback);
-
-// Returns whether the app launcher was enabled the last time it was checked.
-bool WasAppLauncherEnabled();
+// Returns whether the app launcher has been enabled.
+bool IsAppLauncherEnabled();
} // namespace apps