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

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

Issue 13209004: Add a flag to override unlimitedStorage quota for any origins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move from content/ to chrome/ Created 7 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_special_storage_policy.cc
diff --git a/chrome/browser/extensions/extension_special_storage_policy.cc b/chrome/browser/extensions/extension_special_storage_policy.cc
index e23964185b098be1c800ebbaf6137a4bcfe862fa..4017d034bbb258ade245a6c40da6b39839deebca 100644
--- a/chrome/browser/extensions/extension_special_storage_policy.cc
+++ b/chrome/browser/extensions/extension_special_storage_policy.cc
@@ -5,10 +5,12 @@
#include "chrome/browser/extensions/extension_special_storage_policy.h"
#include "base/bind.h"
+#include "base/command_line.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/content_settings/cookie_settings.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_types.h"
#include "chrome/common/extensions/extension.h"
@@ -33,6 +35,9 @@ bool ExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
}
bool ExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUnlimitedStorage))
+ return true;
+
base::AutoLock locker(lock_);
return unlimited_extensions_.Contains(origin);
}
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698