OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/login/apply_services_customization.h" | 5 #include "chrome/browser/chromeos/login/apply_services_customization.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/browser_thread.h" | |
14 #include "chrome/browser/chromeos/cros/cros_library.h" | 13 #include "chrome/browser/chromeos/cros/cros_library.h" |
15 #include "chrome/browser/chromeos/cros/network_library.h" | 14 #include "chrome/browser/chromeos/cros/network_library.h" |
16 #include "chrome/browser/chromeos/customization_document.h" | 15 #include "chrome/browser/chromeos/customization_document.h" |
17 #include "chrome/browser/prefs/pref_service.h" | 16 #include "chrome/browser/prefs/pref_service.h" |
18 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 18 #include "content/browser/browser_thread.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // URL where to fetch OEM services customization manifest from. | 23 // URL where to fetch OEM services customization manifest from. |
24 const char kServicesCustomizationManifestUrl[] = | 24 const char kServicesCustomizationManifestUrl[] = |
25 "file:///opt/oem/etc/services_manifest.json"; | 25 "file:///opt/oem/etc/services_manifest.json"; |
26 | 26 |
27 // Name of local state option that tracks if services customization has been | 27 // Name of local state option that tracks if services customization has been |
28 // applied. | 28 // applied. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // on browser startup. | 159 // on browser startup. |
160 CommandLine::ForCurrentProcess()->AppendArg(initial_start_page); | 160 CommandLine::ForCurrentProcess()->AppendArg(initial_start_page); |
161 VLOG(1) << "initial_start_page_url: " << initial_start_page; | 161 VLOG(1) << "initial_start_page_url: " << initial_start_page; |
162 } | 162 } |
163 // TODO(dpolukhin): apply customized apps, exts and support page. | 163 // TODO(dpolukhin): apply customized apps, exts and support page. |
164 | 164 |
165 SetApplied(true); | 165 SetApplied(true); |
166 } | 166 } |
167 | 167 |
168 } // namespace chromeos | 168 } // namespace chromeos |
OLD | NEW |