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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_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/bookmarks/bookmark_bubble_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
index c09d3adb07f34dd838c3bccf02ca7b49fb06a60b..a2358751d9c321fa181d8dbe8690fef5eac87ebe 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h"
+#include <utility>
+
#include "base/macros.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
@@ -79,8 +81,8 @@ void BookmarkBubbleView::ShowBubble(
return;
bookmark_bubble_ =
- new BookmarkBubbleView(anchor_view, observer, delegate.Pass(), profile,
- url, !already_bookmarked);
+ new BookmarkBubbleView(anchor_view, observer, std::move(delegate),
+ profile, url, !already_bookmarked);
if (!anchor_view) {
bookmark_bubble_->SetAnchorRect(anchor_rect);
bookmark_bubble_->set_parent_window(parent_window);
@@ -288,7 +290,7 @@ BookmarkBubbleView::BookmarkBubbleView(
bool newly_bookmarked)
: BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_RIGHT),
observer_(observer),
- delegate_(delegate.Pass()),
+ delegate_(std::move(delegate)),
profile_(profile),
url_(url),
newly_bookmarked_(newly_bookmarked),

Powered by Google App Engine
This is Rietveld 408576698