| 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/version_info_updater.h" | 5 #include "chrome/browser/chromeos/login/version_info_updater.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/chromeos/cros/cros_library.h" | 15 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 16 #include "chrome/browser/chromeos/wm_ipc.h" | 16 #include "chrome/browser/chromeos/wm_ipc.h" |
| 17 #include "chrome/browser/policy/browser_policy_connector.h" | 17 #include "chrome/browser/policy/browser_policy_connector.h" |
| 18 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
| 19 #include "chrome/common/chrome_version_info.h" | 19 #include "chrome/common/chrome_version_info.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources.h" |
| 24 #include "third_party/cros/chromeos_wm_ipc_enums.h" | 24 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
| 25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
| 26 #include "ui/base/resource/resource_bundle.h" | 26 #include "ui/base/resource/resource_bundle.h" |
| 27 | 27 |
| 28 namespace chromeos { | 28 namespace chromeos { |
| 29 | 29 |
| 30 /////////////////////////////////////////////////////////////////////////////// | 30 /////////////////////////////////////////////////////////////////////////////// |
| 31 // VersionInfoUpdater public: | 31 // VersionInfoUpdater public: |
| 32 | 32 |
| 33 VersionInfoUpdater::VersionInfoUpdater(Delegate* delegate) | 33 VersionInfoUpdater::VersionInfoUpdater(Delegate* delegate) |
| 34 : delegate_(delegate) { | 34 : delegate_(delegate) { |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 } | 198 } |
| 199 | 199 |
| 200 void VersionInfoUpdater::OnPolicyStateChanged( | 200 void VersionInfoUpdater::OnPolicyStateChanged( |
| 201 policy::CloudPolicySubsystem::PolicySubsystemState state, | 201 policy::CloudPolicySubsystem::PolicySubsystemState state, |
| 202 policy::CloudPolicySubsystem::ErrorDetails error_details) { | 202 policy::CloudPolicySubsystem::ErrorDetails error_details) { |
| 203 UpdateEnterpriseInfo(); | 203 UpdateEnterpriseInfo(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 } // namespace chromeos | 206 } // namespace chromeos |
| 207 | 207 |
| OLD | NEW |