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

Unified Diff: content/browser/geolocation/network_location_request.cc

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares Created 9 years, 2 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: content/browser/geolocation/network_location_request.cc
===================================================================
--- content/browser/geolocation/network_location_request.cc (revision 106929)
+++ content/browser/geolocation/network_location_request.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "content/common/geoposition.h"
+#include "content/common/net/url_fetcher.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_request_context_getter.h"
@@ -106,9 +107,11 @@
Geoposition position;
string16 access_token;
+ std::string data;
+ source->GetResponseAsString(&data);
GetLocationFromResponse(status.is_success(),
response_code,
- source->GetResponseStringRef(),
+ data,
timestamp_,
source->url(),
&position,

Powered by Google App Engine
This is Rietveld 408576698