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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "ash/desktop_background/desktop_background_controller.h" | 10 #include "ash/desktop_background/desktop_background_controller.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 25 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
28 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" |
29 #include "chrome/grit/generated_resources.h" | 29 #include "chrome/grit/generated_resources.h" |
30 #include "components/user_manager/user.h" | 30 #include "components/user_manager/user.h" |
31 #include "components/user_manager/user_manager.h" | 31 #include "components/user_manager/user_manager.h" |
32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
33 #include "extensions/browser/event_router.h" | 33 #include "extensions/browser/event_router.h" |
| 34 #include "grit/components_strings.h" |
34 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
35 #include "ui/base/webui/web_ui_util.h" | 36 #include "ui/base/webui/web_ui_util.h" |
36 #include "ui/strings/grit/app_locale_settings.h" | 37 #include "ui/strings/grit/app_locale_settings.h" |
37 #include "url/gurl.h" | 38 #include "url/gurl.h" |
38 | 39 |
39 using base::BinaryValue; | 40 using base::BinaryValue; |
40 using content::BrowserThread; | 41 using content::BrowserThread; |
41 namespace wallpaper_private = extensions::api::wallpaper_private; | 42 namespace wallpaper_private = extensions::api::wallpaper_private; |
42 namespace set_wallpaper_if_exists = wallpaper_private::SetWallpaperIfExists; | 43 namespace set_wallpaper_if_exists = wallpaper_private::SetWallpaperIfExists; |
43 namespace set_wallpaper = wallpaper_private::SetWallpaper; | 44 namespace set_wallpaper = wallpaper_private::SetWallpaper; |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 this, file_list)); | 879 this, file_list)); |
879 } | 880 } |
880 | 881 |
881 void WallpaperPrivateGetOfflineWallpaperListFunction::OnComplete( | 882 void WallpaperPrivateGetOfflineWallpaperListFunction::OnComplete( |
882 const std::vector<std::string>& file_list) { | 883 const std::vector<std::string>& file_list) { |
883 base::ListValue* results = new base::ListValue(); | 884 base::ListValue* results = new base::ListValue(); |
884 results->AppendStrings(file_list); | 885 results->AppendStrings(file_list); |
885 SetResult(results); | 886 SetResult(results); |
886 SendResponse(true); | 887 SendResponse(true); |
887 } | 888 } |
OLD | NEW |