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

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

Issue 2555063003: Render extension URLs with chips (Closed)
Patch Set: pkasting comments and rebase Created 4 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/location_bar/location_bar.h
diff --git a/chrome/browser/ui/location_bar/location_bar.h b/chrome/browser/ui/location_bar/location_bar.h
index 2cdd71346664325d68554e6f06e6cb104904911c..ad2b220a02d83bcc8ab518459e0b3a92777a4e01 100644
--- a/chrome/browser/ui/location_bar/location_bar.h
+++ b/chrome/browser/ui/location_bar/location_bar.h
@@ -100,6 +100,12 @@ class LocationBar {
// Checks if any extension has requested that the bookmark star be hidden.
bool IsBookmarkStarHiddenByExtension() const;
+ // If |url| is an extension URL, returns the name of the associated extension,
+ // with whitespace collapsed. Otherwise, returns empty string. |web_contents|
+ // is used to get at the extension registry.
+ static base::string16 GetExtensionName(const GURL& url,
+ content::WebContents* web_contents);
+
private:
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698