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

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

Issue 145553009: rAc: use libaddressinput to validate international addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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_downloader_impl.cc
diff --git a/third_party/libaddressinput/chromium/chrome_downloader_impl.cc b/third_party/libaddressinput/chromium/chrome_downloader_impl.cc
index 4e6c587e45a88f00db574c0bf2d9bf8c2c071f1b..baf9d96a83d66157a82d422758571e1afad9a816 100644
--- a/third_party/libaddressinput/chromium/chrome_downloader_impl.cc
+++ b/third_party/libaddressinput/chromium/chrome_downloader_impl.cc
@@ -11,6 +11,8 @@
#include "net/url_request/url_fetcher.h"
#include "url/gurl.h"
+namespace autofill {
+
ChromeDownloaderImpl::ChromeDownloaderImpl(net::URLRequestContextGetter* getter)
: getter_(getter) {}
@@ -39,7 +41,7 @@ void ChromeDownloaderImpl::OnURLFetchComplete(const net::URLFetcher* source) {
bool ok = source->GetResponseCode() == net::HTTP_OK;
scoped_ptr<std::string> data(new std::string());
if (ok)
- source->GetResponseAsString(&*data);
+ source->GetResponseAsString(data.get());
(*request->second->callback)(ok, request->second->url, data.Pass());
delete request->first;
@@ -51,3 +53,5 @@ ChromeDownloaderImpl::Request::Request(const std::string& url,
scoped_ptr<Callback> callback)
: url(url),
callback(callback.Pass()) {}
+
+} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698