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

Unified Diff: chrome/browser/ui/app_list/app_list_util.h

Issue 12090062: Enable profile switching for standalone App Launcher via the Settings App. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable tests on aura 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/app_list_util.h
diff --git a/chrome/browser/ui/app_list/app_list_util.h b/chrome/browser/ui/app_list/app_list_util.h
index 82e3bac1894d534bbcb967183745784153dfd423..6d8f91d191a90da1ec3a7b759742ad3c5da6aa19 100644
--- a/chrome/browser/ui/app_list/app_list_util.h
+++ b/chrome/browser/ui/app_list/app_list_util.h
@@ -5,13 +5,39 @@
#ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_
#define CHROME_BROWSER_UI_APP_LIST_APP_LIST_UTIL_H_
+#include "base/file_path.h"
+
+class PrefServiceSimple;
+class Profile;
+
namespace chrome {
+// TODO(koz/benwells): These functions need to be put somewhere more
+// specific than the chrome namespace.
+
// Do any once off initialization needed for the app list.
-void InitAppList();
+void InitAppList(Profile* profile);
// Show the app list.
-void ShowAppList();
+void ShowAppList(Profile* profile);
+
+// Register local state preferences for the app list.
+void RegisterAppListPrefs(PrefServiceSimple* prefs);
+
+// Change the profile that the app list is showing.
+void SetAppListProfile(const FilePath& profile_file_path);
+
+// Get the path of the profile to be used with the app list.
+FilePath GetAppListProfilePath(const FilePath& user_data_dir);
+
+// Dismiss the app list.
+void DismissAppList();
+
+// Get the profile the app list is currently showing.
+Profile* GetCurrentAppListProfile();
+
+// Returns true if the app list is visible.
+bool IsAppListVisible();
} // namespace chrome
« no previous file with comments | « chrome/browser/ui/app_list/app_list_controller_browsertest.cc ('k') | chrome/browser/ui/app_list/app_list_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698