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

Unified Diff: third_party/libaddressinput/chromium/cpp/include/libaddressinput/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/include/libaddressinput/storage.h
diff --git a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/storage.h b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/storage.h
index 95ff3cabee0a5a6198b75425b100b70f88d278d8..213c66b3660eededdeb20f32f9fc0dd86056d004 100644
--- a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/storage.h
+++ b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/storage.h
@@ -47,7 +47,7 @@ class Storage {
virtual ~Storage() {}
// Stores |data| for |key|.
- virtual void Put(const std::string& key, const std::string& data) = 0;
+ virtual void Put(const std::string& key, scoped_ptr<std::string> data) = 0;
// Retrieves the data for |key| and invokes the |data_ready| callback.
virtual void Get(const std::string& key,
« no previous file with comments | « third_party/libaddressinput/chromium/chrome_storage_impl.cc ('k') | third_party/libaddressinput/chromium/cpp/src/retriever.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698