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

Unified Diff: third_party/libaddressinput/chromium/fallback_data_store.cc

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments. Created 6 years, 6 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/fallback_data_store.cc
diff --git a/third_party/libaddressinput/chromium/cpp/src/fallback_data_store.cc b/third_party/libaddressinput/chromium/fallback_data_store.cc
similarity index 98%
copy from third_party/libaddressinput/chromium/cpp/src/fallback_data_store.cc
copy to third_party/libaddressinput/chromium/fallback_data_store.cc
index a87d8ea06da697c8d0848400deb37c8237c0e89d..2136f8124ee32b74b48016dabc7b94107b9da19a 100644
--- a/third_party/libaddressinput/chromium/cpp/src/fallback_data_store.cc
+++ b/third_party/libaddressinput/chromium/fallback_data_store.cc
@@ -16,15 +16,17 @@
#include <string>
-namespace i18n {
-namespace addressinput {
+namespace autofill {
bool FallbackDataStore::Get(const std::string& key, std::string* data) {
if (key != "data/US")
return false;
- // Available at https://i18napis.appspot.com/ssl-aggregate-address/data/US
+ // Available at https://i18napis.appspot.com/ssl-aggregate-address/data/US.
+ // The appended checksum is valid, but the timestamp is old.
data->assign(
+ "timestamp=0\n"
+ "checksum=38d4bcdadfe494ffe062a7ad668d66d6\n"
"{\"data/US/LA\": {\"lang\": \"en\", \"zipex\": \"70000,71599\", \"nam"
"e\": \"Louisiana\", \"zip\": \"70|71[0-5]\", \"key\": \"LA\", \"id\":"
" \"data/US/LA\"}, \"data/US/VT\": {\"lang\": \"en\", \"zipex\": \"0500"
@@ -208,5 +210,4 @@ bool FallbackDataStore::Get(const std::string& key, std::string* data) {
return true;
}
-} // namespace addressinput
-} // namespace i18n
+} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698