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

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: rebase 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 21a5a4b5dfd814a4dbfaecea2c904a3f852f9b4f..4d95e1255a7748b1c7ee350f7b31766dd43c7258 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.
« no previous file with comments | « chrome/browser/chromeos/extensions/wallpaper_api.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698