Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index 1fa7a9cc91667b06716abe8facba1a0671e46219..ef9c3fc04d9a306ee5b4af59a4784042814afd79 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -71,6 +71,7 @@ |
#include "content/public/renderer/render_view.h" |
#include "content/public/renderer/render_view_visitor.h" |
#include "extensions/common/constants.h" |
+#include "extensions/common/extension_urls.h" |
#include "grit/generated_resources.h" |
#include "grit/locale_settings.h" |
#include "grit/renderer_resources.h" |
@@ -1301,7 +1302,7 @@ bool ChromeContentRendererClient::AllowPepperMediaStreamAPI( |
bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource( |
const base::string16& source) const { |
- return GURL(source).SchemeIs(extensions::kExtensionScheme); |
+ return extensions::IsSourceFromAnExtension(source); |
} |
} // namespace chrome |