| 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/policy/app_pack_updater.h" | 5 #include "chrome/browser/chromeos/policy/app_pack_updater.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "base/version.h" | 14 #include "base/version.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
| 16 #include "chrome/browser/chromeos/settings/cros_settings.h" | 17 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 17 #include "chrome/browser/chromeos/settings/cros_settings_names.h" | 18 #include "chrome/browser/chromeos/settings/cros_settings_names.h" |
| 18 #include "chrome/browser/extensions/crx_installer.h" | 19 #include "chrome/browser/extensions/crx_installer.h" |
| 19 #include "chrome/browser/extensions/external_loader.h" | 20 #include "chrome/browser/extensions/external_loader.h" |
| 20 #include "chrome/browser/extensions/external_provider_impl.h" | 21 #include "chrome/browser/extensions/external_provider_impl.h" |
| 21 #include "chrome/browser/extensions/updater/extension_downloader.h" | 22 #include "chrome/browser/extensions/updater/extension_downloader.h" |
| 22 #include "chrome/browser/policy/enterprise_install_attributes.h" | |
| 23 #include "chrome/common/chrome_notification_types.h" | 23 #include "chrome/common/chrome_notification_types.h" |
| 24 #include "chrome/common/extensions/extension.h" | 24 #include "chrome/common/extensions/extension.h" |
| 25 #include "chrome/common/extensions/extension_constants.h" | 25 #include "chrome/common/extensions/extension_constants.h" |
| 26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
| 27 #include "content/public/browser/notification_details.h" | 27 #include "content/public/browser/notification_details.h" |
| 28 #include "content/public/browser/notification_service.h" | 28 #include "content/public/browser/notification_service.h" |
| 29 #include "content/public/browser/notification_source.h" | 29 #include "content/public/browser/notification_source.h" |
| 30 | 30 |
| 31 using content::BrowserThread; | 31 using content::BrowserThread; |
| 32 using file_util::FileEnumerator; | 32 using file_util::FileEnumerator; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 void AppPackUpdater::SetScreenSaverPath(const base::FilePath& path) { | 563 void AppPackUpdater::SetScreenSaverPath(const base::FilePath& path) { |
| 564 // Don't invoke the callback if the path isn't changing. | 564 // Don't invoke the callback if the path isn't changing. |
| 565 if (path != screen_saver_path_) { | 565 if (path != screen_saver_path_) { |
| 566 screen_saver_path_ = path; | 566 screen_saver_path_ = path; |
| 567 if (!screen_saver_update_callback_.is_null()) | 567 if (!screen_saver_update_callback_.is_null()) |
| 568 screen_saver_update_callback_.Run(screen_saver_path_); | 568 screen_saver_update_callback_.Run(screen_saver_path_); |
| 569 } | 569 } |
| 570 } | 570 } |
| 571 | 571 |
| 572 } // namespace policy | 572 } // namespace policy |
| OLD | NEW |