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

Unified Diff: webkit/dom_storage/dom_storage_host.cc

Issue 10201010: Switch chrome and chromiumDRT over to using the new WebKit API for dispatching events. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « webkit/dom_storage/dom_storage_context.h ('k') | webkit/tools/test_shell/simple_dom_storage_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/dom_storage/dom_storage_host.cc
===================================================================
--- webkit/dom_storage/dom_storage_host.cc (revision 133749)
+++ webkit/dom_storage/dom_storage_host.cc (working copy)
@@ -88,10 +88,8 @@
return false;
if (!area->SetItem(key, value, old_value))
return false;
- if ((area->namespace_id() == kLocalStorageNamespaceId) &&
- (old_value->is_null() || old_value->string() != value)) {
+ if (old_value->is_null() || old_value->string() != value)
context_->NotifyItemSet(area, key, value, *old_value, page_url);
- }
return true;
}
@@ -103,8 +101,7 @@
return false;
if (!area->RemoveItem(key, old_value))
return false;
- if (area->namespace_id() == kLocalStorageNamespaceId)
- context_->NotifyItemRemoved(area, key, *old_value, page_url);
+ context_->NotifyItemRemoved(area, key, *old_value, page_url);
return true;
}
@@ -114,8 +111,7 @@
return false;
if (!area->Clear())
return false;
- if (area->namespace_id() == kLocalStorageNamespaceId)
- context_->NotifyAreaCleared(area, page_url);
+ context_->NotifyAreaCleared(area, page_url);
return true;
}
« no previous file with comments | « webkit/dom_storage/dom_storage_context.h ('k') | webkit/tools/test_shell/simple_dom_storage_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698