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

Side by Side Diff: chrome/browser/geolocation/network_location_request.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/geolocation/network_location_request.h" 5 #include "chrome/browser/geolocation/network_location_request.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 11 #include "base/values.h"
11 #include "chrome/common/geoposition.h" 12 #include "chrome/common/geoposition.h"
12 #include "chrome/common/net/url_request_context_getter.h" 13 #include "chrome/common/net/url_request_context_getter.h"
13 #include "net/base/load_flags.h" 14 #include "net/base/load_flags.h"
14 #include "net/url_request/url_request_status.h" 15 #include "net/url_request/url_request_status.h"
15 16
16 namespace { 17 namespace {
17 const char kMimeApplicationJson[] = "application/json"; 18 const char kMimeApplicationJson[] = "application/json";
18 19
19 // See http://code.google.com/apis/gears/geolocation_network_protocol.html 20 // See http://code.google.com/apis/gears/geolocation_network_protocol.html
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 AddInteger(L"signal_strength", iter->radio_signal_strength, wifi_tower); 415 AddInteger(L"signal_strength", iter->radio_signal_strength, wifi_tower);
415 AddInteger(L"age", age_milliseconds, wifi_tower); 416 AddInteger(L"age", age_milliseconds, wifi_tower);
416 AddInteger(L"channel", iter->channel, wifi_tower); 417 AddInteger(L"channel", iter->channel, wifi_tower);
417 AddInteger(L"signal_to_noise", iter->signal_to_noise, wifi_tower); 418 AddInteger(L"signal_to_noise", iter->signal_to_noise, wifi_tower);
418 AddString(L"ssid", iter->ssid, wifi_tower); 419 AddString(L"ssid", iter->ssid, wifi_tower);
419 wifi_towers->Append(wifi_tower); 420 wifi_towers->Append(wifi_tower);
420 } 421 }
421 body_object->Set(L"wifi_towers", wifi_towers); 422 body_object->Set(L"wifi_towers", wifi_towers);
422 } 423 }
423 } // namespace 424 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698