| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 125 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void ApplyServicesCustomization::Apply(const std::string& manifest) { | 128 void ApplyServicesCustomization::Apply(const std::string& manifest) { |
| 129 chromeos::ServicesCustomizationDocument customization; | 129 chromeos::ServicesCustomizationDocument customization; |
| 130 if (!customization.LoadManifestFromString(manifest)) { | 130 if (!customization.LoadManifestFromString(manifest)) { |
| 131 LOG(ERROR) << "Failed to partner parse services customizations manifest"; | 131 LOG(ERROR) << "Failed to partner parse services customizations manifest"; |
| 132 return; | 132 return; |
| 133 } | 133 } |
| 134 | 134 |
| 135 LOG(INFO) << "Partner services customizations manifest loaded successfully"; | 135 VLOG(1) << "Partner services customizations manifest loaded successfully"; |
| 136 if (!customization.initial_start_page_url().empty()) { | 136 if (!customization.initial_start_page_url().empty()) { |
| 137 // Append partner's start page url to command line so it gets opened | 137 // Append partner's start page url to command line so it gets opened |
| 138 // on browser startup. | 138 // on browser startup. |
| 139 CommandLine::ForCurrentProcess()->AppendArg( | 139 CommandLine::ForCurrentProcess()->AppendArg( |
| 140 customization.initial_start_page_url()); | 140 customization.initial_start_page_url()); |
| 141 LOG(INFO) << "initial_start_page_url: " | 141 VLOG(1) << "initial_start_page_url: " |
| 142 << customization.initial_start_page_url(); | 142 << customization.initial_start_page_url(); |
| 143 } | 143 } |
| 144 // TODO(dpolukhin): apply customized apps, exts and support page. | 144 // TODO(dpolukhin): apply customized apps, exts and support page. |
| 145 | 145 |
| 146 SetApplied(true); | 146 SetApplied(true); |
| 147 } | 147 } |
| 148 | 148 |
| 149 } | 149 } |
| OLD | NEW |