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

Unified Diff: third_party/libaddressinput/chromium/cpp/test/fake_storage.cc

Issue 148463003: libaddressinput - reduce number of copies in storage class by 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 years, 10 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: third_party/libaddressinput/chromium/cpp/test/fake_storage.cc
diff --git a/third_party/libaddressinput/chromium/cpp/test/fake_storage.cc b/third_party/libaddressinput/chromium/cpp/test/fake_storage.cc
index 531b23d14718a6738e0635404e8bc89b06e7a8ee..2511b396339cd821afe53e6fd7a7498f70221d91 100644
--- a/third_party/libaddressinput/chromium/cpp/test/fake_storage.cc
+++ b/third_party/libaddressinput/chromium/cpp/test/fake_storage.cc
@@ -24,8 +24,8 @@ FakeStorage::FakeStorage() {}
FakeStorage::~FakeStorage() {}
-void FakeStorage::Put(const std::string& key, const std::string& data) {
- data_[key] = data;
+void FakeStorage::Put(const std::string& key, scoped_ptr<std::string> data) {
+ data_[key] = *data;
}
void FakeStorage::Get(const std::string& key,

Powered by Google App Engine
This is Rietveld 408576698