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

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 149737: Blacklist API change for allowing multiple rule matches... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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 | « no previous file | chrome/browser/privacy_blacklist/blacklist.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
===================================================================
--- chrome/browser/net/chrome_url_request_context.cc (revision 20880)
+++ chrome/browser/net/chrome_url_request_context.cc (working copy)
@@ -391,13 +391,12 @@
const URLRequest::UserData* d =
request->GetUserData((void*)&Blacklist::kRequestDataKey);
if (d) {
- const Blacklist::Entry* entry =
- static_cast<const Blacklist::RequestData*>(d)->entry();
- if (entry->attributes() & Blacklist::kDontStoreCookies) {
+ const Blacklist::Match* match = static_cast<const Blacklist::Match*>(d);
+ if (match->attributes() & Blacklist::kDontStoreCookies) {
cookie->clear();
return false;
}
- if (entry->attributes() & Blacklist::kDontPersistCookies) {
+ if (match->attributes() & Blacklist::kDontPersistCookies) {
*cookie = Blacklist::StripCookieExpiry(*cookie);
}
}
@@ -409,9 +408,8 @@
const URLRequest::UserData* d =
request->GetUserData((void*)&Blacklist::kRequestDataKey);
if (d) {
- const Blacklist::Entry* entry =
- static_cast<const Blacklist::RequestData*>(d)->entry();
- if (entry->attributes() & Blacklist::kDontSendCookies)
+ const Blacklist::Match* match = static_cast<const Blacklist::Match*>(d);
+ if (match->attributes() & Blacklist::kDontSendCookies)
return false;
}
return true;
« no previous file with comments | « no previous file | chrome/browser/privacy_blacklist/blacklist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698