OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "components/wifi_sync/wifi_credential_syncable_service_factory.h" | 5 #include "components/wifi_sync/wifi_credential_syncable_service_factory.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "build/build_config.h" |
11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 12 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
12 #include "components/wifi_sync/wifi_config_delegate.h" | 13 #include "components/wifi_sync/wifi_config_delegate.h" |
13 #include "components/wifi_sync/wifi_credential_syncable_service.h" | 14 #include "components/wifi_sync/wifi_credential_syncable_service.h" |
14 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
15 | 16 |
16 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
17 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
18 #include "chromeos/login/login_state.h" | 19 #include "chromeos/login/login_state.h" |
19 #include "chromeos/network/network_handler.h" | 20 #include "chromeos/network/network_handler.h" |
20 #include "components/wifi_sync/wifi_config_delegate_chromeos.h" | 21 #include "components/wifi_sync/wifi_config_delegate_chromeos.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // ChromeBrowserMainPartsChromeos, and destroyed after all | 96 // ChromeBrowserMainPartsChromeos, and destroyed after all |
96 // KeyedService instances are destroyed. | 97 // KeyedService instances are destroyed. |
97 chromeos::NetworkHandler* network_handler = chromeos::NetworkHandler::Get(); | 98 chromeos::NetworkHandler* network_handler = chromeos::NetworkHandler::Get(); |
98 return make_scoped_ptr(new WifiConfigDelegateChromeOs( | 99 return make_scoped_ptr(new WifiConfigDelegateChromeOs( |
99 GetUserHash(context, !ignore_login_state_for_test_), | 100 GetUserHash(context, !ignore_login_state_for_test_), |
100 network_handler->managed_network_configuration_handler())); | 101 network_handler->managed_network_configuration_handler())); |
101 } | 102 } |
102 #endif | 103 #endif |
103 | 104 |
104 } // namespace wifi_sync | 105 } // namespace wifi_sync |
OLD | NEW |