Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(988)

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
33 #include "chrome/browser/browser_process.h" 33 #include "chrome/browser/browser_process.h"
34 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" 34 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
35 #include "chrome/browser/chromeos/profiles/profile_helper.h" 35 #include "chrome/browser/chromeos/profiles/profile_helper.h"
36 #include "chrome/browser/profiles/profile.h" 36 #include "chrome/browser/profiles/profile.h"
37 #include "chrome/browser/sync/profile_sync_service_factory.h" 37 #include "chrome/browser/sync/profile_sync_service_factory.h"
38 #include "chrome/browser/ui/ash/ash_util.h" 38 #include "chrome/browser/ui/ash/ash_util.h"
39 #include "chrome/common/chrome_paths.h" 39 #include "chrome/common/chrome_paths.h"
40 #include "chrome/common/pref_names.h" 40 #include "chrome/common/pref_names.h"
41 #include "chrome/grit/generated_resources.h" 41 #include "chrome/grit/generated_resources.h"
42 #include "chromeos/chromeos_switches.h" 42 #include "chromeos/chromeos_switches.h"
43 #include "components/browser_sync/browser/profile_sync_service.h" 43 #include "components/browser_sync/profile_sync_service.h"
44 #include "components/prefs/pref_service.h" 44 #include "components/prefs/pref_service.h"
45 #include "components/strings/grit/components_strings.h" 45 #include "components/strings/grit/components_strings.h"
46 #include "components/user_manager/user.h" 46 #include "components/user_manager/user.h"
47 #include "components/user_manager/user_manager.h" 47 #include "components/user_manager/user_manager.h"
48 #include "components/wallpaper/wallpaper_layout.h" 48 #include "components/wallpaper/wallpaper_layout.h"
49 #include "content/public/browser/browser_thread.h" 49 #include "content/public/browser/browser_thread.h"
50 #include "extensions/browser/event_router.h" 50 #include "extensions/browser/event_router.h"
51 #include "ui/base/l10n/l10n_util.h" 51 #include "ui/base/l10n/l10n_util.h"
52 #include "ui/base/webui/web_ui_util.h" 52 #include "ui/base/webui/web_ui_util.h"
53 #include "ui/strings/grit/app_locale_settings.h" 53 #include "ui/strings/grit/app_locale_settings.h"
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 WallpaperPrivateRecordWallpaperUMAFunction::Run() { 969 WallpaperPrivateRecordWallpaperUMAFunction::Run() {
970 std::unique_ptr<record_wallpaper_uma::Params> params( 970 std::unique_ptr<record_wallpaper_uma::Params> params(
971 record_wallpaper_uma::Params::Create(*args_)); 971 record_wallpaper_uma::Params::Create(*args_));
972 EXTENSION_FUNCTION_VALIDATE(params); 972 EXTENSION_FUNCTION_VALIDATE(params);
973 973
974 user_manager::User::WallpaperType source = getWallpaperType(params->source); 974 user_manager::User::WallpaperType source = getWallpaperType(params->source);
975 UMA_HISTOGRAM_ENUMERATION("Ash.Wallpaper.Source", source, 975 UMA_HISTOGRAM_ENUMERATION("Ash.Wallpaper.Source", source,
976 user_manager::User::WALLPAPER_TYPE_COUNT); 976 user_manager::User::WALLPAPER_TYPE_COUNT);
977 return RespondNow(NoArguments()); 977 return RespondNow(NoArguments());
978 } 978 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/input_method_api.cc ('k') | chrome/browser/chromeos/login/signin/auth_sync_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698