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

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

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.h
diff --git a/third_party/libaddressinput/chromium/cpp/test/fake_storage.h b/third_party/libaddressinput/chromium/cpp/test/fake_storage.h
index 1987a2d2d19ec728d8a8d00e257a07a183a27d1b..bafb9a240e2675d787f49ec15284762f7b076451 100644
--- a/third_party/libaddressinput/chromium/cpp/test/fake_storage.h
+++ b/third_party/libaddressinput/chromium/cpp/test/fake_storage.h
@@ -34,7 +34,7 @@ namespace addressinput {
// ~MyClass() {}
//
// void Write() {
-// storage_.Put("key", "value");
+// storage_.Put("key", make_scoped_ptr(new std::string("value")));
// }
//
// void Read() {
@@ -58,7 +58,7 @@ class FakeStorage : public Storage {
virtual ~FakeStorage();
// Storage implementation.
- virtual void Put(const std::string& key, const std::string& data);
+ virtual void Put(const std::string& key, scoped_ptr<std::string> data);
virtual void Get(const std::string& key, scoped_ptr<Callback> data_ready)
const;

Powered by Google App Engine
This is Rietveld 408576698