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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes Created 4 years, 8 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
Index: chrome/browser/chromeos/extensions/wallpaper_private_api.h
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.h b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
index 36369785f91f1ad6ca118f074c85a4a9c0b88912..1862a3bb73cc29b13c4b6fde5ca713c838937fe9 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.h
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
@@ -74,7 +74,8 @@ class WallpaperPrivateSetWallpaperIfExistsFunction
void ReadFileAndInitiateStartDecode(const base::FilePath& file_path,
const base::FilePath& fallback_path);
- scoped_ptr<extensions::api::wallpaper_private::SetWallpaperIfExists::Params>
+ std::unique_ptr<
+ extensions::api::wallpaper_private::SetWallpaperIfExists::Params>
params;
// User id of the active user when this api is been called.
@@ -105,9 +106,10 @@ class WallpaperPrivateSetWallpaperFunction : public WallpaperFunctionBase {
void SaveToFile();
// Sets wallpaper to the decoded image.
- void SetDecodedWallpaper(scoped_ptr<gfx::ImageSkia> image);
+ void SetDecodedWallpaper(std::unique_ptr<gfx::ImageSkia> image);
- scoped_ptr<extensions::api::wallpaper_private::SetWallpaper::Params> params;
+ std::unique_ptr<extensions::api::wallpaper_private::SetWallpaper::Params>
+ params;
// The decoded wallpaper. It may accessed from UI thread to set wallpaper or
// FILE thread to resize and save wallpaper to disk.
@@ -156,12 +158,13 @@ class WallpaperPrivateSetCustomWallpaperFunction
// Generates thumbnail of custom wallpaper. A simple STRETCH is used for
// generating thunbail.
void GenerateThumbnail(const base::FilePath& thumbnail_path,
- scoped_ptr<gfx::ImageSkia> image);
+ std::unique_ptr<gfx::ImageSkia> image);
// Thumbnail is ready. Calls api function javascript callback.
void ThumbnailGenerated(base::RefCountedBytes* data);
- scoped_ptr<extensions::api::wallpaper_private::SetCustomWallpaper::Params>
+ std::unique_ptr<
+ extensions::api::wallpaper_private::SetCustomWallpaper::Params>
params;
// User account id of the active user when this api is been called.

Powered by Google App Engine
This is Rietveld 408576698