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

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

Issue 2555063003: Render extension URLs with chips (Closed)
Patch Set: Enlarge the window so that it's over the minimum window size 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 e3e316fac94e7605652021d8212970deb23f9a09..46c851882f8b1ca8500e5df229b56aacb01aff13 100644
--- a/chrome/browser/ui/location_bar/location_bar.h
+++ b/chrome/browser/ui/location_bar/location_bar.h
@@ -104,6 +104,12 @@ class LocationBar {
// Checks if any extension has requested that the bookmark star be hidden.
bool IsBookmarkStarHiddenByExtension() const;
+ // Returns the name of the extension associated with the page, if any.
+ // Returns empty string otherwise. Performs basic sanitization on the
+ // extension name.
Peter Kasting 2016/12/14 22:47:07 Nit: "associated with the page" is kinda vague; if
meacer 2016/12/16 18:46:17 Done.
+ base::string16 GetExtensionName(const GURL& url,
+ content::WebContents* web_contents) const;
Peter Kasting 2016/12/14 22:47:07 It seems like this method can be static, not just
meacer 2016/12/16 18:46:17 Done.
+
private:
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698