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

Unified Diff: chrome/browser/ui/chrome_pages.cc

Issue 2272813003: Add ARC++ specific fields to launch data for specific apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome build fix. 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/chrome_pages.cc
diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc
index 3ed57f8f97f904507c79f0643d27892b620c2b47..78b2cb8521e688dd83d8718b46e87c5f67b749eb 100644
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
@@ -12,6 +12,7 @@
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "chrome/browser/download/download_shelf.h"
+#include "chrome/browser/extensions/launch_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
@@ -32,6 +33,7 @@
#include "components/signin/core/common/profile_management_switches.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
+#include "extensions/browser/extension_prefs.h"
#include "extensions/common/constants.h"
#include "google_apis/gaia/gaia_urls.h"
#include "net/base/url_util.h"
@@ -102,8 +104,11 @@ void ShowHelpImpl(Browser* browser, Profile* profile, HelpSource source) {
default:
NOTREACHED() << "Unhandled help source" << source;
}
- OpenApplication(CreateAppLaunchParamsUserContainer(
- profile, extension, NEW_FOREGROUND_TAB, app_launch_source));
+ OpenApplication(
+ AppLaunchParams(profile, extension,
+ extensions::GetLaunchContainer(
+ extensions::ExtensionPrefs::Get(profile), extension),
+ NEW_FOREGROUND_TAB, app_launch_source, true));
#else
GURL url;
switch (source) {
« no previous file with comments | « chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc ('k') | chrome/browser/ui/extensions/app_launch_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698