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

Unified Diff: content/renderer/render_view_impl.cc

Issue 8604008: Update callers of WebSecurityOrigin::isEmpty to call WebSecurityOrigin::isUnique (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/renderer/content_settings_observer.cc ('k') | content/worker/webworkerclient_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
===================================================================
--- content/renderer/render_view_impl.cc (revision 110783)
+++ content/renderer/render_view_impl.cc (working copy)
@@ -2981,8 +2981,8 @@
DCHECK(callbacks);
WebSecurityOrigin origin = frame->document().securityOrigin();
- if (origin.isEmpty()) {
- // Uninitialized document?
+ if (origin.isUnique()) {
+ // Unique origins cannot store persistent state.
callbacks->didFail(WebKit::WebFileErrorAbort);
return;
}
@@ -2998,8 +2998,8 @@
WebStorageQuotaCallbacks* callbacks) {
DCHECK(frame);
WebSecurityOrigin origin = frame->document().securityOrigin();
- if (origin.isEmpty()) {
- // Uninitialized document?
+ if (origin.isUnique()) {
+ // Unique origins cannot store persistent state.
callbacks->didFail(WebKit::WebStorageQuotaErrorAbort);
return;
}
@@ -3016,8 +3016,8 @@
WebStorageQuotaCallbacks* callbacks) {
DCHECK(frame);
WebSecurityOrigin origin = frame->document().securityOrigin();
- if (origin.isEmpty()) {
- // Uninitialized document?
+ if (origin.isUnique()) {
+ // Unique origins cannot store persistent state.
callbacks->didFail(WebKit::WebStorageQuotaErrorAbort);
return;
}
« no previous file with comments | « chrome/renderer/content_settings_observer.cc ('k') | content/worker/webworkerclient_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698