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

Unified Diff: athena/extensions/chrome/extensions_delegate_impl.cc

Issue 722703002: Make "source" a required argument of AppLaunchParams and fill in the argument in all call points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/apps/app_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/extensions/chrome/extensions_delegate_impl.cc
diff --git a/athena/extensions/chrome/extensions_delegate_impl.cc b/athena/extensions/chrome/extensions_delegate_impl.cc
index feedc8e7375fb4b924ef9f621efc8ef89c60c997..2678f35a0a56b6c84707849103ae2bd31bd5a0cd 100644
--- a/athena/extensions/chrome/extensions_delegate_impl.cc
+++ b/athena/extensions/chrome/extensions_delegate_impl.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/extensions/app_launch_params.h"
#include "chrome/browser/ui/extensions/application_launch.h"
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include "extensions/browser/extension_registry.h"
@@ -59,10 +60,9 @@ class ChromeExtensionsDelegate : public ExtensionsDelegate {
return false;
int event_flags = 0;
- AppLaunchParams params(Profile::FromBrowserContext(context),
- extension,
- event_flags,
- chrome::HOST_DESKTOP_TYPE_ASH);
+ AppLaunchParams params(Profile::FromBrowserContext(context), extension,
+ event_flags, chrome::HOST_DESKTOP_TYPE_ASH,
+ extensions::SOURCE_APP_LAUNCHER);
// TODO(oshima): rename HOST_DESTOP_TYPE_ASH to non native desktop.
if (app_id == extensions::kWebStoreAppId) {
« no previous file with comments | « no previous file | chrome/browser/apps/app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698