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

Unified Diff: chrome/browser/ui/views/create_application_shortcut_view.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (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/ui/views/create_application_shortcut_view.cc
diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc
index 995eba4471af517ae94340ff9c7bc838db95f239..4f641374fe7dd7322643e157424b5777f92256cd 100644
--- a/chrome/browser/ui/views/create_application_shortcut_view.cc
+++ b/chrome/browser/ui/views/create_application_shortcut_view.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/ui/views/create_application_shortcut_view.h"
#include <stddef.h>
-
#include <algorithm>
#include <cmath>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -396,9 +396,9 @@ bool CreateApplicationShortcutView::Accept() {
creation_locations.in_quick_launch_bar = false;
#endif
- web_app::CreateShortcutsWithInfo(web_app::SHORTCUT_CREATION_BY_USER,
- creation_locations, shortcut_info_.Pass(),
- file_handlers_info_);
+ web_app::CreateShortcutsWithInfo(
+ web_app::SHORTCUT_CREATION_BY_USER, creation_locations,
+ std::move(shortcut_info_), file_handlers_info_);
return true;
}
@@ -558,6 +558,6 @@ bool CreateChromeApplicationShortcutView::Cancel() {
void CreateChromeApplicationShortcutView::OnAppInfoLoaded(
scoped_ptr<web_app::ShortcutInfo> shortcut_info,
const extensions::FileHandlersInfo& file_handlers_info) {
- shortcut_info_ = shortcut_info.Pass();
+ shortcut_info_ = std::move(shortcut_info);
file_handlers_info_ = file_handlers_info;
}
« no previous file with comments | « chrome/browser/ui/views/constrained_window_views_browsertest.cc ('k') | chrome/browser/ui/views/desktop_media_picker_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698