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

Unified Diff: chrome/browser/sync/js/js_event_details.cc

Issue 7904021: [Sync] Rework SharedValue<T> into Immutable<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 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 | « chrome/browser/sync/js/js_event_details.h ('k') | chrome/browser/sync/js/js_transaction_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/js/js_event_details.cc
diff --git a/chrome/browser/sync/js/js_event_details.cc b/chrome/browser/sync/js/js_event_details.cc
index ae23d1790f60ca3342f08975a09382e8f92fccb5..9182d24c923236c4bd57a41fbba0baf8a5e794a1 100644
--- a/chrome/browser/sync/js/js_event_details.cc
+++ b/chrome/browser/sync/js/js_event_details.cc
@@ -8,16 +8,14 @@
namespace browser_sync {
-JsEventDetails::JsEventDetails()
- : details_(new SharedDictionaryValue()) {}
+JsEventDetails::JsEventDetails() {}
-JsEventDetails::JsEventDetails(DictionaryValue* details)
- : details_(new SharedDictionaryValue(details)) {}
+JsEventDetails::JsEventDetails(DictionaryValue* details) : details_(details) {}
JsEventDetails::~JsEventDetails() {}
const DictionaryValue& JsEventDetails::Get() const {
- return details_->Get();
+ return details_.Get();
}
std::string JsEventDetails::ToString() const {
« no previous file with comments | « chrome/browser/sync/js/js_event_details.h ('k') | chrome/browser/sync/js/js_transaction_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698