| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/extensions/wallpaper_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/wallpaper_private_api.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/files/file_enumerator.h" | 21 #include "base/files/file_enumerator.h" |
| 22 #include "base/files/file_util.h" | 22 #include "base/files/file_util.h" |
| 23 #include "base/macros.h" | 23 #include "base/macros.h" |
| 24 #include "base/memory/ptr_util.h" | 24 #include "base/memory/ptr_util.h" |
| 25 #include "base/memory/ref_counted_memory.h" | 25 #include "base/memory/ref_counted_memory.h" |
| 26 #include "base/metrics/histogram_macros.h" | 26 #include "base/metrics/histogram_macros.h" |
| 27 #include "base/path_service.h" | 27 #include "base/path_service.h" |
| 28 #include "base/strings/string_number_conversions.h" | 28 #include "base/strings/string_number_conversions.h" |
| 29 #include "base/strings/stringprintf.h" | 29 #include "base/strings/stringprintf.h" |
| 30 #include "base/threading/sequenced_worker_pool.h" | 30 #include "base/threading/sequenced_worker_pool.h" |
| 31 #include "base/threading/worker_pool.h" | |
| 32 #include "base/values.h" | 31 #include "base/values.h" |
| 33 #include "chrome/browser/browser_process.h" | 32 #include "chrome/browser/browser_process.h" |
| 34 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 33 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 35 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 34 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 36 #include "chrome/browser/profiles/profile.h" | 35 #include "chrome/browser/profiles/profile.h" |
| 37 #include "chrome/browser/sync/profile_sync_service_factory.h" | 36 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 38 #include "chrome/browser/ui/ash/ash_util.h" | 37 #include "chrome/browser/ui/ash/ash_util.h" |
| 39 #include "chrome/common/chrome_paths.h" | 38 #include "chrome/common/chrome_paths.h" |
| 40 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
| 41 #include "chrome/grit/generated_resources.h" | 40 #include "chrome/grit/generated_resources.h" |
| (...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 WallpaperPrivateRecordWallpaperUMAFunction::Run() { | 956 WallpaperPrivateRecordWallpaperUMAFunction::Run() { |
| 958 std::unique_ptr<record_wallpaper_uma::Params> params( | 957 std::unique_ptr<record_wallpaper_uma::Params> params( |
| 959 record_wallpaper_uma::Params::Create(*args_)); | 958 record_wallpaper_uma::Params::Create(*args_)); |
| 960 EXTENSION_FUNCTION_VALIDATE(params); | 959 EXTENSION_FUNCTION_VALIDATE(params); |
| 961 | 960 |
| 962 user_manager::User::WallpaperType source = getWallpaperType(params->source); | 961 user_manager::User::WallpaperType source = getWallpaperType(params->source); |
| 963 UMA_HISTOGRAM_ENUMERATION("Ash.Wallpaper.Source", source, | 962 UMA_HISTOGRAM_ENUMERATION("Ash.Wallpaper.Source", source, |
| 964 user_manager::User::WALLPAPER_TYPE_COUNT); | 963 user_manager::User::WALLPAPER_TYPE_COUNT); |
| 965 return RespondNow(NoArguments()); | 964 return RespondNow(NoArguments()); |
| 966 } | 965 } |
| OLD | NEW |