| 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 9396e93184c3783ac9032494b805eb42fe0e55b4..be8e5d7cc88501bc08567982615124e357b9302c 100644
|
| --- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
|
| +++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -231,9 +231,12 @@ class WallpaperFunctionBase::WallpaperDecoder : public ImageDecoder::Delegate {
|
| }
|
|
|
| void Start(const std::string& image_data) {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| image_decoder_ = new ImageDecoder(this, image_data,
|
| ImageDecoder::ROBUST_JPEG_CODEC);
|
| - image_decoder_->Start();
|
| + scoped_refptr<base::MessageLoopProxy> task_runner =
|
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI);
|
| + image_decoder_->Start(task_runner);
|
| }
|
|
|
| void Cancel() {
|
|
|