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

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

Issue 5560007: Don't update icon of chrome app shortcuts from the favicon of the hosted URL. (Closed)
Patch Set: Created 10 years 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/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 77c21460cb644307709c20db35619d15d6a99a77..d7da75d329f6c5d96e3d7a8d28f4ea0304df2c4f 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -245,15 +245,21 @@ class Browser : public TabHandlerDelegate,
// app panel window, otherwise it will be opened as as either
// Browser::Type::APP a.k.a. "thin frame" (if |extension| is NULL) or
// Browser::Type::EXTENSION_APP (if |extension| is non-NULL).
+ // If |app_browser| is not NULL, it is set to the browser that hosts the
+ // returned tab.
static TabContents* OpenApplicationWindow(
Profile* profile,
const Extension* extension,
extension_misc::LaunchContainer container,
- const GURL& url);
-
- // Open an application in a new application window. Used to implement
- // app shortcuts.
- static TabContents* OpenApplicationWindow(Profile* profile, const GURL& url);
+ const GURL& url,
+ Browser** app_browser);
+
+ // Open a window hosting a URL. Used to implement url app shortcuts.
Aaron Boodman 2010/12/06 23:45:24 Don't all windows host URLs? Maybe "Open a URL in
Sam Kerner (Chrome) 2010/12/07 04:12:30 Done.
+ // If |update_shortcut| is true, update the name, description, and
+ // favicon of the shortcut.
+ static TabContents* OpenUrlAppShortcutWindow(Profile* profile,
Aaron Boodman 2010/12/06 23:45:24 Good terminology change 'app -> appshortcut', but
Sam Kerner (Chrome) 2010/12/07 04:12:30 Done.
+ const GURL& url,
+ bool update_shortcut);
// Open an application for |extension| in a new application tab, or
// |existing_tab| if not NULL. Returns NULL if there are no appropriate

Powered by Google App Engine
This is Rietveld 408576698