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

Unified Diff: chrome/browser/extensions/user_script_listener.cc

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 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
Index: chrome/browser/extensions/user_script_listener.cc
diff --git a/chrome/browser/extensions/user_script_listener.cc b/chrome/browser/extensions/user_script_listener.cc
index fcebfa583bca88f69a2d96395cf5c00b2f216697..eda59570b73363a9ba3013d6d49e8a8017764896 100644
--- a/chrome/browser/extensions/user_script_listener.cc
+++ b/chrome/browser/extensions/user_script_listener.cc
@@ -84,7 +84,7 @@ UserScriptListener::UserScriptListener()
ResourceThrottle* UserScriptListener::CreateResourceThrottle(
const GURL& url,
- ResourceType::Type resource_type) {
+ ResourceType resource_type) {
if (!ShouldDelayRequest(url, resource_type))
return NULL;
@@ -97,13 +97,13 @@ UserScriptListener::~UserScriptListener() {
}
bool UserScriptListener::ShouldDelayRequest(const GURL& url,
- ResourceType::Type resource_type) {
+ ResourceType resource_type) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
// If it's a frame load, then we need to check the URL against the list of
// user scripts to see if we need to wait.
- if (resource_type != ResourceType::MAIN_FRAME &&
- resource_type != ResourceType::SUB_FRAME)
+ if (resource_type != content::RESOURCE_TYPE_MAIN_FRAME &&
+ resource_type != content::RESOURCE_TYPE_SUB_FRAME)
return false;
// Note: we could delay only requests made by the profile who is causing the
« no previous file with comments | « chrome/browser/extensions/user_script_listener.h ('k') | chrome/browser/extensions/user_script_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698