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

Unified Diff: components/wallpaper/wallpaper_resizer.cc

Issue 2338363002: Replace single-threaded SequencedWorkerPool with base::Thread in WallpaperResizerTest. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/wallpaper/wallpaper_resizer.h ('k') | components/wallpaper/wallpaper_resizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wallpaper/wallpaper_resizer.cc
diff --git a/components/wallpaper/wallpaper_resizer.cc b/components/wallpaper/wallpaper_resizer.cc
index 144bbf761c17d1e540a28c49bd654a3e1faad960..93640fd33305d605dff063abcaf3e8ef3a016b6e 100644
--- a/components/wallpaper/wallpaper_resizer.cc
+++ b/components/wallpaper/wallpaper_resizer.cc
@@ -4,6 +4,8 @@
#include "components/wallpaper/wallpaper_resizer.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
@@ -105,12 +107,12 @@ WallpaperResizer::WallpaperResizer(
const gfx::ImageSkia& image,
const gfx::Size& target_size,
WallpaperLayout layout,
- const scoped_refptr<base::TaskRunner>& task_runner)
+ scoped_refptr<base::TaskRunner> task_runner)
: image_(image),
original_image_id_(GetImageId(image_)),
target_size_(target_size),
layout_(layout),
- task_runner_(task_runner),
+ task_runner_(std::move(task_runner)),
weak_ptr_factory_(this) {
image_.MakeThreadSafe();
}
« no previous file with comments | « components/wallpaper/wallpaper_resizer.h ('k') | components/wallpaper/wallpaper_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698