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

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: fix browser_tests 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
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9a335e2d972be07da11b3f18ddfbf52c54503416 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 MaybeShowPackageInAppLauncher(
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698