| Index: chrome/browser/chromeos/extensions/wallpaper_private_api.cc
|
| diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
|
| index f74db97e6a66aea57be64e6d3fc1157684ea2ca6..9643385c9c27fd585a08c5ae40770863e67cd0ce 100644
|
| --- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
|
| +++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
|
| @@ -285,7 +285,7 @@ WallpaperPrivateSetWallpaperIfExistsFunction::
|
| WallpaperPrivateSetWallpaperIfExistsFunction::
|
| ~WallpaperPrivateSetWallpaperIfExistsFunction() {}
|
|
|
| -bool WallpaperPrivateSetWallpaperIfExistsFunction::RunImpl() {
|
| +bool WallpaperPrivateSetWallpaperIfExistsFunction::RunAsync() {
|
| params = set_wallpaper_if_exists::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
|
|
| @@ -388,7 +388,7 @@ WallpaperPrivateSetWallpaperFunction::WallpaperPrivateSetWallpaperFunction() {
|
| WallpaperPrivateSetWallpaperFunction::~WallpaperPrivateSetWallpaperFunction() {
|
| }
|
|
|
| -bool WallpaperPrivateSetWallpaperFunction::RunImpl() {
|
| +bool WallpaperPrivateSetWallpaperFunction::RunAsync() {
|
| params = set_wallpaper::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
|
|
| @@ -489,7 +489,7 @@ WallpaperPrivateResetWallpaperFunction::
|
| WallpaperPrivateResetWallpaperFunction::
|
| ~WallpaperPrivateResetWallpaperFunction() {}
|
|
|
| -bool WallpaperPrivateResetWallpaperFunction::RunImpl() {
|
| +bool WallpaperPrivateResetWallpaperFunction::RunAsync() {
|
| chromeos::WallpaperManager* wallpaper_manager =
|
| chromeos::WallpaperManager::Get();
|
| chromeos::UserManager* user_manager = chromeos::UserManager::Get();
|
| @@ -517,7 +517,7 @@ WallpaperPrivateSetCustomWallpaperFunction::
|
| WallpaperPrivateSetCustomWallpaperFunction::
|
| ~WallpaperPrivateSetCustomWallpaperFunction() {}
|
|
|
| -bool WallpaperPrivateSetCustomWallpaperFunction::RunImpl() {
|
| +bool WallpaperPrivateSetCustomWallpaperFunction::RunAsync() {
|
| params = set_custom_wallpaper::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
|
|
| @@ -609,7 +609,7 @@ WallpaperPrivateSetCustomWallpaperLayoutFunction::
|
| WallpaperPrivateSetCustomWallpaperLayoutFunction::
|
| ~WallpaperPrivateSetCustomWallpaperLayoutFunction() {}
|
|
|
| -bool WallpaperPrivateSetCustomWallpaperLayoutFunction::RunImpl() {
|
| +bool WallpaperPrivateSetCustomWallpaperLayoutFunction::RunAsync() {
|
| scoped_ptr<set_custom_wallpaper_layout::Params> params(
|
| set_custom_wallpaper_layout::Params::Create(*args_));
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
| @@ -645,7 +645,7 @@ WallpaperPrivateMinimizeInactiveWindowsFunction::
|
| ~WallpaperPrivateMinimizeInactiveWindowsFunction() {
|
| }
|
|
|
| -bool WallpaperPrivateMinimizeInactiveWindowsFunction::RunImpl() {
|
| +bool WallpaperPrivateMinimizeInactiveWindowsFunction::RunAsync() {
|
| WindowStateManager::MinimizeInactiveWindows(
|
| chromeos::UserManager::Get()->GetActiveUser()->username_hash());
|
| return true;
|
| @@ -659,7 +659,7 @@ WallpaperPrivateRestoreMinimizedWindowsFunction::
|
| ~WallpaperPrivateRestoreMinimizedWindowsFunction() {
|
| }
|
|
|
| -bool WallpaperPrivateRestoreMinimizedWindowsFunction::RunImpl() {
|
| +bool WallpaperPrivateRestoreMinimizedWindowsFunction::RunAsync() {
|
| WindowStateManager::RestoreWindows(
|
| chromeos::UserManager::Get()->GetActiveUser()->username_hash());
|
| return true;
|
| @@ -671,7 +671,7 @@ WallpaperPrivateGetThumbnailFunction::WallpaperPrivateGetThumbnailFunction() {
|
| WallpaperPrivateGetThumbnailFunction::~WallpaperPrivateGetThumbnailFunction() {
|
| }
|
|
|
| -bool WallpaperPrivateGetThumbnailFunction::RunImpl() {
|
| +bool WallpaperPrivateGetThumbnailFunction::RunAsync() {
|
| scoped_ptr<get_thumbnail::Params> params(
|
| get_thumbnail::Params::Create(*args_));
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
| @@ -758,7 +758,7 @@ WallpaperPrivateSaveThumbnailFunction::WallpaperPrivateSaveThumbnailFunction() {
|
| WallpaperPrivateSaveThumbnailFunction::
|
| ~WallpaperPrivateSaveThumbnailFunction() {}
|
|
|
| -bool WallpaperPrivateSaveThumbnailFunction::RunImpl() {
|
| +bool WallpaperPrivateSaveThumbnailFunction::RunAsync() {
|
| scoped_ptr<save_thumbnail::Params> params(
|
| save_thumbnail::Params::Create(*args_));
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
| @@ -811,7 +811,7 @@ WallpaperPrivateGetOfflineWallpaperListFunction::
|
| ~WallpaperPrivateGetOfflineWallpaperListFunction() {
|
| }
|
|
|
| -bool WallpaperPrivateGetOfflineWallpaperListFunction::RunImpl() {
|
| +bool WallpaperPrivateGetOfflineWallpaperListFunction::RunAsync() {
|
| sequence_token_ = BrowserThread::GetBlockingPool()->
|
| GetNamedSequenceToken(chromeos::kWallpaperSequenceTokenName);
|
| scoped_refptr<base::SequencedTaskRunner> task_runner =
|
|
|