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

Unified Diff: chrome/browser/ui/extensions/app_launch_params.cc

Issue 2276293002: Revert of Add ARC++ specific fields to launch data for specific apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/extensions/app_launch_params.cc
diff --git a/chrome/browser/ui/extensions/app_launch_params.cc b/chrome/browser/ui/extensions/app_launch_params.cc
index 46ad14254963f0c8511ed0649f6e04cf9744ec90..271d87a34c9f764ebb2fd71e6f2ba26a41f74d60 100644
--- a/chrome/browser/ui/extensions/app_launch_params.cc
+++ b/chrome/browser/ui/extensions/app_launch_params.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/ui/extensions/app_launch_params.h"
-#include "base/memory/ptr_util.h"
#include "chrome/browser/extensions/launch_util.h"
#include "chrome/browser/profiles/profile.h"
#include "extensions/browser/extension_prefs.h"
@@ -12,38 +11,19 @@
#include "extensions/common/extension.h"
#include "ui/base/window_open_disposition.h"
-#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/arc/arc_auth_service.h"
-#include "components/arc/arc_bridge_service.h"
-#endif
-
using extensions::ExtensionPrefs;
-using extensions::api::app_runtime::PlayStoreStatus;
AppLaunchParams::AppLaunchParams(Profile* profile,
const extensions::Extension* extension,
extensions::LaunchContainer container,
WindowOpenDisposition disposition,
- extensions::AppLaunchSource source,
- bool set_playstore_status)
+ extensions::AppLaunchSource source)
: profile(profile),
extension_id(extension ? extension->id() : std::string()),
container(container),
disposition(disposition),
command_line(base::CommandLine::NO_PROGRAM),
- source(source),
- play_store_status(PlayStoreStatus::PLAY_STORE_STATUS_UNKNOWN) {
-#if defined(OS_CHROMEOS)
- if (set_playstore_status) {
- if (arc::ArcAuthService::IsAllowedForProfile(profile)) {
- play_store_status = PlayStoreStatus::PLAY_STORE_STATUS_ENABLED;
- } else if (arc::ArcBridgeService::GetAvailable(
- base::CommandLine::ForCurrentProcess())) {
- play_store_status = PlayStoreStatus::PLAY_STORE_STATUS_AVAILABLE;
- } // else, default to PLAY_STORE_STATUS_UNKNOWN.
- }
-#endif
-}
+ source(source) {}
AppLaunchParams::AppLaunchParams(const AppLaunchParams& other) = default;
« no previous file with comments | « chrome/browser/ui/extensions/app_launch_params.h ('k') | chrome/browser/ui/extensions/application_launch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698