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
{
13 WifiManagerFactory
* g_factory
= NULL
;
17 scoped_ptr
<WifiManager
> WifiManager::Create() {
19 return g_factory
->CreateWifiManager();
22 return CreateDefault();
25 void WifiManager::SetFactory(WifiManagerFactory
* factory
) {
29 WifiCredentials
WifiCredentials::FromPSK(const std::string
& psk
) {
30 WifiCredentials return_value
;
31 return_value
.psk
= psk
;
37 } // namespace local_discovery