| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/arc/wallpaper/arc_wallpaper_service.h" | 5 #include "chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.h" |
| 6 | 6 |
| 7 #include "ash/common/wallpaper/wallpaper_controller.h" | 7 #include "ash/wallpaper/wallpaper_controller.h" |
| 8 #include "ash/common/wm_shell.h" | 8 #include "ash/wm_shell.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/task_scheduler/post_task.h" | 11 #include "base/task_scheduler/post_task.h" |
| 12 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 12 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 13 #include "components/arc/arc_bridge_service.h" | 13 #include "components/arc/arc_bridge_service.h" |
| 14 #include "components/signin/core/account_id/account_id.h" | 14 #include "components/signin/core/account_id/account_id.h" |
| 15 #include "components/user_manager/user_manager.h" | 15 #include "components/user_manager/user_manager.h" |
| 16 #include "components/wallpaper/wallpaper_files_id.h" | 16 #include "components/wallpaper/wallpaper_files_id.h" |
| 17 #include "components/wallpaper/wallpaper_layout.h" | 17 #include "components/wallpaper/wallpaper_layout.h" |
| 18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 void ArcWallpaperService::OnWallpaperDataChanged() { | 137 void ArcWallpaperService::OnWallpaperDataChanged() { |
| 138 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 138 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 139 auto* wallpaper_instance = ARC_GET_INSTANCE_FOR_METHOD( | 139 auto* wallpaper_instance = ARC_GET_INSTANCE_FOR_METHOD( |
| 140 arc_bridge_service()->wallpaper(), OnWallpaperChanged); | 140 arc_bridge_service()->wallpaper(), OnWallpaperChanged); |
| 141 if (!wallpaper_instance) | 141 if (!wallpaper_instance) |
| 142 return; | 142 return; |
| 143 wallpaper_instance->OnWallpaperChanged(); | 143 wallpaper_instance->OnWallpaperChanged(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace arc | 146 } // namespace arc |
| OLD | NEW |