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

Unified Diff: chrome/browser/privacy_blacklist/blacklist_interceptor.cc

Issue 523137: Also match against the query string if present. (Closed)
Patch Set: updates Created 10 years, 11 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/privacy_blacklist/blacklist_interceptor.cc
diff --git a/chrome/browser/privacy_blacklist/blacklist_interceptor.cc b/chrome/browser/privacy_blacklist/blacklist_interceptor.cc
index 79c47fb86951df0d260a7eda0b1f206f1f497fa4..2a571e914e4c571b7665c7d8ecfb70b86c39b433 100644
--- a/chrome/browser/privacy_blacklist/blacklist_interceptor.cc
+++ b/chrome/browser/privacy_blacklist/blacklist_interceptor.cc
@@ -81,7 +81,7 @@ class URLRequestBlacklistJob : public URLRequestSimpleJob {
const BlacklistManager* blacklist_manager =
request_info_.GetBlacklistManager();
const Blacklist* blacklist = blacklist_manager->GetCompiledBlacklist();
- scoped_ptr<Blacklist::Match> match(blacklist->findMatch(request_->url()));
+ scoped_ptr<Blacklist::Match> match(blacklist->FindMatch(request_->url()));
const Blacklist::Entry* entry = NULL;
if (match->attributes() & Blacklist::kBlockAll) {
for (std::vector<const Blacklist::Entry*>::const_iterator i =
@@ -123,7 +123,7 @@ URLRequestJob* BlacklistInterceptor::MaybeIntercept(URLRequest* request) {
const BlacklistManager* blacklist_manager =
request_info->GetBlacklistManager();
const Blacklist* blacklist = blacklist_manager->GetCompiledBlacklist();
- scoped_ptr<Blacklist::Match> match(blacklist->findMatch(request->url()));
+ scoped_ptr<Blacklist::Match> match(blacklist->FindMatch(request->url()));
if (!match.get()) {
// Nothing is blacklisted for this request. Do not intercept.

Powered by Google App Engine
This is Rietveld 408576698