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

Unified Diff: chrome/browser/web_applications/web_app.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/web_applications/web_app.cc
diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc
index 5884760fa0d135acfe41b6d933933e3008fa3ca4..2836f53545e536ce8c81d20212d438fa3136a411 100644
--- a/chrome/browser/web_applications/web_app.cc
+++ b/chrome/browser/web_applications/web_app.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/web_applications/web_app.h"
#include <stddef.h>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -118,14 +119,14 @@ void OnImageLoaded(scoped_ptr<web_app::ShortcutInfo> shortcut_info,
shortcut_info->favicon = image_family;
}
- callback.Run(shortcut_info.Pass(), file_handlers_info);
+ callback.Run(std::move(shortcut_info), file_handlers_info);
}
void IgnoreFileHandlersInfo(
const web_app::ShortcutInfoCallback& shortcut_info_callback,
scoped_ptr<web_app::ShortcutInfo> shortcut_info,
const extensions::FileHandlersInfo& file_handlers_info) {
- shortcut_info_callback.Run(shortcut_info.Pass());
+ shortcut_info_callback.Run(std::move(shortcut_info));
}
void ScheduleCreatePlatformShortcut(
@@ -411,14 +412,14 @@ void CreateShortcutsWithInfo(
return;
}
- ScheduleCreatePlatformShortcut(reason, locations, shortcut_info.Pass(),
+ ScheduleCreatePlatformShortcut(reason, locations, std::move(shortcut_info),
file_handlers_info);
}
void CreateNonAppShortcut(const ShortcutLocations& locations,
scoped_ptr<ShortcutInfo> shortcut_info) {
ScheduleCreatePlatformShortcut(SHORTCUT_CREATION_AUTOMATED, locations,
- shortcut_info.Pass(),
+ std::move(shortcut_info),
extensions::FileHandlersInfo());
}

Powered by Google App Engine
This is Rietveld 408576698