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

Side by Side Diff: content/browser/geolocation/location_arbitrator_impl.cc

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/geolocation/location_arbitrator_impl.h" 5 #include "content/browser/geolocation/location_arbitrator_impl.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 AccessTokenStore* LocationArbitratorImpl::GetAccessTokenStore() { 142 AccessTokenStore* LocationArbitratorImpl::GetAccessTokenStore() {
143 if (!access_token_store_.get()) 143 if (!access_token_store_.get())
144 access_token_store_ = NewAccessTokenStore(); 144 access_token_store_ = NewAccessTokenStore();
145 return access_token_store_.get(); 145 return access_token_store_.get();
146 } 146 }
147 147
148 LocationProvider* LocationArbitratorImpl::NewNetworkLocationProvider( 148 LocationProvider* LocationArbitratorImpl::NewNetworkLocationProvider(
149 AccessTokenStore* access_token_store, 149 AccessTokenStore* access_token_store,
150 net::URLRequestContextGetter* context, 150 net::URLRequestContextGetter* context,
151 const GURL& url, 151 const GURL& url,
152 const string16& access_token) { 152 const base::string16& access_token) {
153 #if defined(OS_ANDROID) 153 #if defined(OS_ANDROID)
154 // Android uses its own SystemLocationProvider. 154 // Android uses its own SystemLocationProvider.
155 return NULL; 155 return NULL;
156 #else 156 #else
157 return new NetworkLocationProvider(access_token_store, context, url, 157 return new NetworkLocationProvider(access_token_store, context, url,
158 access_token); 158 access_token);
159 #endif 159 #endif
160 } 160 }
161 161
162 LocationProvider* LocationArbitratorImpl::NewSystemLocationProvider() { 162 LocationProvider* LocationArbitratorImpl::NewSystemLocationProvider() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 195 }
196 } 196 }
197 return false; 197 return false;
198 } 198 }
199 199
200 bool LocationArbitratorImpl::HasPermissionBeenGranted() const { 200 bool LocationArbitratorImpl::HasPermissionBeenGranted() const {
201 return is_permission_granted_; 201 return is_permission_granted_;
202 } 202 }
203 203
204 } // namespace content 204 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698