summaryrefslogtreecommitdiffstats
path: root/third_party/libaddressinput/chromium/chrome_downloader_impl.cc
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-28 06:08:33 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-28 06:08:33 +0000
commit235dbd26a4aaab464cd67404e158340ca906d843 (patch)
treed0f1e325360ca3cdc644dea7cf6a571e389bf9da /third_party/libaddressinput/chromium/chrome_downloader_impl.cc
parent811f5f2f1776b0f3ca85928779080e1cc3e283a7 (diff)
downloadchromium_src-235dbd26a4aaab464cd67404e158340ca906d843.zip
chromium_src-235dbd26a4aaab464cd67404e158340ca906d843.tar.gz
chromium_src-235dbd26a4aaab464cd67404e158340ca906d843.tar.bz2
Add autofill:: namespace to ::i18n::addressinput::{Downloader,Storage} so
they're not in the global namespace. BUG=317839 R=estade@chromium.org TEST=compile Review URL: https://codereview.chromium.org/148273006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libaddressinput/chromium/chrome_downloader_impl.cc')
-rw-r--r--third_party/libaddressinput/chromium/chrome_downloader_impl.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/third_party/libaddressinput/chromium/chrome_downloader_impl.cc b/third_party/libaddressinput/chromium/chrome_downloader_impl.cc
index 4e6c587..baf9d96 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