| 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/customization/customization_document.h" | 5 #include "chrome/browser/chromeos/customization/customization_document.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
| 15 #include "base/json/json_reader.h" | 15 #include "base/json/json_reader.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
| 20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 21 #include "base/prefs/pref_registry_simple.h" | |
| 22 #include "base/prefs/pref_service.h" | |
| 23 #include "base/strings/pattern.h" | 21 #include "base/strings/pattern.h" |
| 24 #include "base/strings/string_split.h" | 22 #include "base/strings/string_split.h" |
| 25 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
| 26 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
| 27 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
| 28 #include "base/time/time.h" | 26 #include "base/time/time.h" |
| 29 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 30 #include "chrome/browser/chromeos/customization/customization_wallpaper_download
er.h" | 28 #include "chrome/browser/chromeos/customization/customization_wallpaper_download
er.h" |
| 31 #include "chrome/browser/chromeos/extensions/default_app_order.h" | 29 #include "chrome/browser/chromeos/extensions/default_app_order.h" |
| 32 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 30 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 33 #include "chrome/browser/chromeos/login/wizard_controller.h" | 31 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 34 #include "chrome/browser/chromeos/net/delay_network_call.h" | 32 #include "chrome/browser/chromeos/net/delay_network_call.h" |
| 35 #include "chrome/browser/extensions/external_loader.h" | 33 #include "chrome/browser/extensions/external_loader.h" |
| 36 #include "chrome/browser/extensions/external_provider_impl.h" | 34 #include "chrome/browser/extensions/external_provider_impl.h" |
| 37 #include "chrome/browser/profiles/profile.h" | 35 #include "chrome/browser/profiles/profile.h" |
| 38 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 36 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
| 39 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" | 37 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
| 40 #include "chrome/common/chrome_paths.h" | 38 #include "chrome/common/chrome_paths.h" |
| 41 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
| 42 #include "chromeos/system/statistics_provider.h" | 40 #include "chromeos/system/statistics_provider.h" |
| 43 #include "components/pref_registry/pref_registry_syncable.h" | 41 #include "components/pref_registry/pref_registry_syncable.h" |
| 42 #include "components/prefs/pref_registry_simple.h" |
| 43 #include "components/prefs/pref_service.h" |
| 44 #include "content/public/browser/browser_thread.h" | 44 #include "content/public/browser/browser_thread.h" |
| 45 #include "extensions/common/extension_urls.h" | 45 #include "extensions/common/extension_urls.h" |
| 46 #include "net/base/load_flags.h" | 46 #include "net/base/load_flags.h" |
| 47 #include "net/http/http_response_headers.h" | 47 #include "net/http/http_response_headers.h" |
| 48 #include "net/http/http_status_code.h" | 48 #include "net/http/http_status_code.h" |
| 49 #include "net/url_request/url_fetcher.h" | 49 #include "net/url_request/url_fetcher.h" |
| 50 | 50 |
| 51 using content::BrowserThread; | 51 using content::BrowserThread; |
| 52 | 52 |
| 53 namespace chromeos { | 53 namespace chromeos { |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 apply_tasks_success_ += success; | 954 apply_tasks_success_ += success; |
| 955 | 955 |
| 956 if (apply_tasks_started_ != apply_tasks_finished_) | 956 if (apply_tasks_started_ != apply_tasks_finished_) |
| 957 return; | 957 return; |
| 958 | 958 |
| 959 if (apply_tasks_success_ == apply_tasks_finished_) | 959 if (apply_tasks_success_ == apply_tasks_finished_) |
| 960 SetApplied(true); | 960 SetApplied(true); |
| 961 } | 961 } |
| 962 | 962 |
| 963 } // namespace chromeos | 963 } // namespace chromeos |
| OLD | NEW |