Add GCMChannelStatusSyncer to schedule requests and enable/disable GCM
[chromium-blink-merge.git] / chrome / browser / local_discovery / wifi / wifi_manager.cc
blobc59c0beaaebb11b9df68db5720ce386cfeae1974
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/local_discovery/wifi/wifi_manager.h"
7 namespace local_discovery {
9 namespace wifi {
11 namespace {
13 WifiManagerFactory* g_factory = NULL;
15 } // namespace
17 scoped_ptr<WifiManager> WifiManager::Create() {
18 if (g_factory) {
19 return g_factory->CreateWifiManager();
22 return CreateDefault();
25 void WifiManager::SetFactory(WifiManagerFactory* factory) {
26 g_factory = factory;
29 WifiCredentials WifiCredentials::FromPSK(const std::string& psk) {
30 WifiCredentials return_value;
31 return_value.psk = psk;
32 return return_value;
35 } // namespace wifi
37 } // namespace local_discovery