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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_utils.cc

Issue 2804703003: Toggle DocumentsUI on/off using ChromeOS flag. (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | 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_utils.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_utils.cc b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
index 417df3224fec001287b6bf860a7856db2ea4dda7..94ec8451c61f6b668dc5e31a72ab522db47a305a 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_utils.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
@@ -9,6 +9,7 @@
#include "ash/shell.h"
#include "base/bind.h"
+#include "base/feature_list.h"
#include "base/json/json_writer.h"
#include "base/synchronization/waitable_event.h"
#include "base/values.h"
@@ -22,6 +23,7 @@
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/session_manager_client.h"
#include "components/arc/arc_bridge_service.h"
+#include "components/arc/arc_features.h"
#include "components/arc/arc_service_manager.h"
#include "components/arc/arc_util.h"
#include "components/arc/common/intent_helper.mojom.h"
@@ -176,10 +178,15 @@ class LaunchAppWithoutSize {
const char kPlayStoreAppId[] = "gpkmicpkkebkmabiaedjognfppcchdfa";
const char kPlayStorePackage[] = "com.android.vending";
const char kPlayStoreActivity[] = "com.android.vending.AssetBrowserActivity";
+const char kFilesAppId[] = "clippbnfpgifdekheldlleoeiiababjg";
const char kSettingsAppId[] = "mconboelelhjpkbdhhiijkgcimoangdj";
bool ShouldShowInLauncher(const std::string& app_id) {
- return (app_id != kSettingsAppId);
+ if (app_id == kFilesAppId) {
+ return base::FeatureList::IsEnabled(kShowArcFilesAppFeature);
+ } else {
+ return (app_id != kSettingsAppId);
+ }
}
bool LaunchAppWithRect(content::BrowserContext* context,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698