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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 155171: Remove url_constants dependency from tab_contents.h. (Closed)
Patch Set: Created 11 years, 5 months 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/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 8141c4288f30338513a2cd6002054f1dce31db0c..0f61f442fe5152ba15e88d26e90d916f0e62a61c 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -410,9 +410,9 @@ void TabContents::RegisterUserPrefs(PrefService* prefs) {
IDS_STATIC_ENCODING_LIST);
}
-bool TabContents::SupportsURL(GURL* url) {
- // TODO(brettw) remove this function.
- return true;
+// Returns true if contains content rendered by an extension.
+bool TabContents::HostsExtension() const {
+ return GetURL().SchemeIs(chrome::kExtensionScheme);
}
AutofillManager* TabContents::GetAutofillManager() {
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698