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

Unified Diff: chrome/browser/ui/browser.h

Issue 8526017: Append parameters to webstore URL to indicate launch source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fixes Created 9 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 | « chrome/browser/resources/shared/js/util.js ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 64798213163252f60fa5230e2df1814ba08761fd..3b320621e24351e4e407cae8c4d21a87ee330e7c 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -263,11 +263,13 @@ class Browser : public TabHandlerDelegate,
static void OpenURLOffTheRecord(Profile* profile, const GURL& url);
// Open |extension| in |container|, using |disposition| if container type is
- // TAB. Returns the TabContents* that was created or NULL.
+ // TAB. Returns the TabContents* that was created or NULL. If non-empty,
+ // |override_url| is used in place of the app launch url.
static TabContents* OpenApplication(
Profile* profile,
const Extension* extension,
extension_misc::LaunchContainer container,
+ const GURL& override_url,
WindowOpenDisposition disposition);
// Opens a new application window for the specified url. If |as_panel|
@@ -295,9 +297,11 @@ class Browser : public TabHandlerDelegate,
bool update_shortcut);
// Open an application for |extension| using |disposition|. Returns NULL if
- // there are no appropriate existing browser windows for |profile|.
+ // there are no appropriate existing browser windows for |profile|. If
+ // non-empty, |override_url| is used in place of the app launch url.
static TabContents* OpenApplicationTab(Profile* profile,
const Extension* extension,
+ const GURL& override_url,
WindowOpenDisposition disposition);
// Opens a new window and opens the bookmark manager.
« no previous file with comments | « chrome/browser/resources/shared/js/util.js ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698