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_; |