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

Unified Diff: chrome/browser/browsing_data_quota_helper_impl.cc

Issue 9958107: Limiting the "Cookies and site data" form to "web safe" schemes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License. Created 8 years, 9 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/browsing_data_quota_helper_impl.cc
diff --git a/chrome/browser/browsing_data_quota_helper_impl.cc b/chrome/browser/browsing_data_quota_helper_impl.cc
index 04a9a734300e2f03e50e5e06c8d15f699c807ae7..ed8bb71252a922f76c2f3064a9ad3bed43fb117d 100644
--- a/chrome/browser/browsing_data_quota_helper_impl.cc
+++ b/chrome/browser/browsing_data_quota_helper_impl.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/url_constants.h"
+#include "chrome/browser/browsing_data_helper.h"
#include "webkit/quota/quota_manager.h"
using content::BrowserThread;
@@ -88,7 +89,7 @@ void BrowsingDataQuotaHelperImpl::GotOrigins(
for (std::set<GURL>::const_iterator itr = origins.begin();
itr != origins.end();
++itr)
- if (!itr->SchemeIs(chrome::kExtensionScheme))
+ if (BrowsingDataHelper::HasValidScheme(*itr))
pending_hosts_.insert(std::make_pair(itr->host(), type));
DCHECK(type == quota::kStorageTypeTemporary ||
« no previous file with comments | « chrome/browser/browsing_data_local_storage_helper_unittest.cc ('k') | chrome/browser/browsing_data_quota_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698