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

Unified Diff: third_party/libaddressinput/chromium/chrome_storage_impl.h

Issue 389733002: Reland "Use upstream libaddressinput in Chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GN build. Created 6 years, 5 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/chrome_storage_impl.h
diff --git a/third_party/libaddressinput/chromium/chrome_storage_impl.h b/third_party/libaddressinput/chromium/chrome_storage_impl.h
index 5ee657b139c96000c994679558875f71f8374420..b68c72bacbf36174a860dbec494bd341aaf8e8c8 100644
--- a/third_party/libaddressinput/chromium/chrome_storage_impl.h
+++ b/third_party/libaddressinput/chromium/chrome_storage_impl.h
@@ -11,8 +11,7 @@
#include "base/memory/scoped_vector.h"
#include "base/prefs/pref_store.h"
#include "base/scoped_observer.h"
-#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/storage.h"
-#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/util/scoped_ptr.h"
+#include "third_party/libaddressinput/src/cpp/include/libaddressinput/storage.h"
class WriteablePrefStore;
@@ -28,9 +27,8 @@ class ChromeStorageImpl : public ::i18n::addressinput::Storage,
virtual ~ChromeStorageImpl();
// ::i18n::addressinput::Storage implementation.
- virtual void Put(const std::string& key, scoped_ptr<std::string> data)
- OVERRIDE;
- virtual void Get(const std::string& key, scoped_ptr<Callback> data_ready)
+ virtual void Put(const std::string& key, std::string* data) OVERRIDE;
+ virtual void Get(const std::string& key, const Callback& data_ready)
const OVERRIDE;
// PrefStore::Observer implementation.
@@ -39,14 +37,14 @@ class ChromeStorageImpl : public ::i18n::addressinput::Storage,
private:
struct Request {
- Request(const std::string& key, scoped_ptr<Callback> callback);
+ Request(const std::string& key, const Callback& callback);
std::string key;
- scoped_ptr<Callback> callback;
+ const Callback& callback;
};
// Non-const version of Get().
- void DoGet(const std::string& key, scoped_ptr<Callback> data_ready);
+ void DoGet(const std::string& key, const Callback& data_ready);
WriteablePrefStore* backing_store_; // weak
« no previous file with comments | « third_party/libaddressinput/chromium/chrome_rule_test.cc ('k') | third_party/libaddressinput/chromium/chrome_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698