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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.h

Issue 2276553002: arc: Open launcher after installing app from Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean Created 4 years, 4 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/arc/arc_app_list_prefs.h
diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
index cff36005e483dd28d82ea613239945ea2ecc0751..7746d0a82f095bdd135e7c37512423996cb7bf63 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
+++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
@@ -218,6 +218,9 @@ class ArcAppListPrefs
return app_instance_holder_;
}
+ std::unordered_set<std::string> GetAppsForPackage(
+ const std::string& package_name) const;
+
private:
friend class ChromeLauncherControllerImplTest;
@@ -289,8 +292,6 @@ class ArcAppListPrefs
void OnIconInstalled(const std::string& app_id,
ui::ScaleFactor scale_factor,
bool install_succeed);
- std::unordered_set<std::string> GetAppsForPackage(
- const std::string& package_name) const;
// This checks if app is not registered yet and in this case creates
// non-launchable app entry.
@@ -298,6 +299,12 @@ class ArcAppListPrefs
const std::string& package_name,
const std::string& activity);
+ // Reveals first app from provided package in app launcher if package is newly
+ // installed by user. If all apps in package are hidden then app list is not
+ // shown.
+ void MayShowPackageInAppLauncher(
xiyuan 2016/08/23 17:54:17 nit: MayShowPackageInAppLauncher -> May*be*ShowPac
khmel 2016/08/23 18:03:12 Done.
+ const arc::mojom::ArcPackageInfo& package_info);
+
Profile* const profile_;
// Owned by the BrowserContext.
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | ui/app_list/views/app_list_main_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698