OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/chromeos/mobile/mobile_activator.h" | 5 #include "chrome/browser/chromeos/mobile/mobile_activator.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/memory/ref_counted_memory.h" | 16 #include "base/memory/ref_counted_memory.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
18 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
19 #include "base/observer_list_threadsafe.h" | 19 #include "base/observer_list_threadsafe.h" |
| 20 #include "base/prefs/pref_service.h" |
20 #include "base/string_piece.h" | 21 #include "base/string_piece.h" |
21 #include "base/string_util.h" | 22 #include "base/string_util.h" |
22 #include "base/timer.h" | 23 #include "base/timer.h" |
23 #include "base/utf_string_conversions.h" | 24 #include "base/utf_string_conversions.h" |
24 #include "base/values.h" | 25 #include "base/values.h" |
25 #include "chrome/browser/browser_process.h" | 26 #include "chrome/browser/browser_process.h" |
26 #include "chrome/browser/chromeos/cros/cros_library.h" | 27 #include "chrome/browser/chromeos/cros/cros_library.h" |
27 #include "chrome/browser/chromeos/cros/network_library.h" | 28 #include "chrome/browser/chromeos/cros/network_library.h" |
28 #include "chrome/browser/prefs/pref_service.h" | |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
31 | 31 |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Cellular configuration file path. | 36 // Cellular configuration file path. |
37 const char kCellularConfigPath[] = | 37 const char kCellularConfigPath[] = |
38 "/usr/share/chromeos-assets/mobile/mobile_config.json"; | 38 "/usr/share/chromeos-assets/mobile/mobile_config.json"; |
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 | 954 |
955 std::string MobileActivator::GetErrorMessage(const std::string& code) const { | 955 std::string MobileActivator::GetErrorMessage(const std::string& code) const { |
956 return cellular_config_->GetErrorMessage(code); | 956 return cellular_config_->GetErrorMessage(code); |
957 } | 957 } |
958 | 958 |
959 NetworkLibrary* MobileActivator::GetNetworkLibrary() const { | 959 NetworkLibrary* MobileActivator::GetNetworkLibrary() const { |
960 return CrosLibrary::Get()->GetNetworkLibrary(); | 960 return CrosLibrary::Get()->GetNetworkLibrary(); |
961 } | 961 } |
962 | 962 |
963 } // namespace chromeos | 963 } // namespace chromeos |
OLD | NEW |