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

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

Issue 6597044: Revert 76228 - Move core pieces of geolocation from chrome to content.This is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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/gateway_data_provider_win.h" 5 #include "chrome/browser/geolocation/gateway_data_provider_win.h"
6 6
7 #include <iphlpapi.h> 7 #include <iphlpapi.h>
8 #include <winsock2.h> 8 #include <winsock2.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 WinGatewayDataProvider::~WinGatewayDataProvider() { 107 WinGatewayDataProvider::~WinGatewayDataProvider() {
108 } 108 }
109 109
110 template<> 110 template<>
111 GatewayDataProviderImplBase* GatewayDataProvider::DefaultFactoryFunction() { 111 GatewayDataProviderImplBase* GatewayDataProvider::DefaultFactoryFunction() {
112 if (!CommandLine::ForCurrentProcess() 112 if (!CommandLine::ForCurrentProcess()
113 ->HasSwitch(switches::kExperimentalLocationFeatures)) 113 ->HasSwitch(switches::kExperimentalLocationFeatures))
114 return new EmptyDeviceDataProvider<GatewayData>(); 114 return new EmptyDeviceDataProvider<GatewayData>();
115 return new WinGatewayDataProvider(); 115 return new WinGatewayDataProvider();
116 } 116 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/gateway_data_provider_win.h ('k') | chrome/browser/geolocation/geolocation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698