OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chromeos/network/managed_state.h" |
| 6 |
| 7 #include "chromeos/network/device_state.h" |
| 8 #include "chromeos/network/network_state.h" |
| 9 |
| 10 namespace chromeos { |
| 11 |
| 12 ManagedState* ManagedState::Create(ManagedType type, const std::string& path) { |
| 13 switch(type) { |
| 14 case ManagedState::MANAGED_TYPE_NETWORK: |
| 15 return new NetworkState(path); |
| 16 case ManagedState::MANAGED_TYPE_DEVICE: |
| 17 return new DeviceState(path); |
| 18 } |
| 19 return NULL; |
| 20 } |
| 21 |
| 22 } // namespace chromeos |
OLD | NEW |