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

Unified Diff: chrome/browser/ui/ash/chrome_screenshot_grabber.cc

Issue 1865213004: Convert //chrome/browser/ui 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/ui/ash/chrome_screenshot_grabber.cc
diff --git a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
index fff9cd3e48b83ea80a120bb3fed304a49de177f2..9392cd738bda33d38f642be2668d023e2f6059fb 100644
--- a/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
+++ b/chrome/browser/ui/ash/chrome_screenshot_grabber.cc
@@ -90,9 +90,10 @@ void ReadFileAndCopyToClipboardLocal(const base::FilePath& screenshot_path) {
}
#if defined(OS_CHROMEOS)
-void ReadFileAndCopyToClipboardDrive(drive::FileError error,
- const base::FilePath& file_path,
- scoped_ptr<drive::ResourceEntry> entry) {
+void ReadFileAndCopyToClipboardDrive(
+ drive::FileError error,
+ const base::FilePath& file_path,
+ std::unique_ptr<drive::ResourceEntry> entry) {
if (error != drive::FILE_ERROR_OK) {
LOG(ERROR) << "Failed to read the screenshot path on drive: "
<< drive::FileErrorToString(error);
@@ -387,7 +388,7 @@ void ChromeScreenshotGrabber::OnScreenshotCompleted(
if (notifier_state_tracker->IsNotifierEnabled(message_center::NotifierId(
message_center::NotifierId::SYSTEM_COMPONENT,
ash::system_notifier::kNotifierScreenshot))) {
- scoped_ptr<Notification> notification(
+ std::unique_ptr<Notification> notification(
CreateNotification(result, screenshot_path));
g_browser_process->notification_ui_manager()->Add(*notification,
GetProfile());
« no previous file with comments | « chrome/browser/ui/ash/chrome_screenshot_grabber.h ('k') | chrome/browser/ui/ash/chrome_screenshot_grabber_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698