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

Unified Diff: chrome/browser/ui/views/frame/browser_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/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index b26c1727c0f270aa7042eb6e9f5e4ff076057a53..0f7ffd2cfe9cf557b5c6d0cc12cfe1bc14fc9318 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/ui/views/frame/browser_view.h"
#include <stdint.h>
-
#include <algorithm>
+#include <utility>
#include "base/auto_reset.h"
#include "base/command_line.h"
@@ -1314,7 +1314,7 @@ void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) {
BookmarkBubbleView::ShowBubble(GetToolbarView()->GetBookmarkBubbleAnchor(),
gfx::Rect(), nullptr, bookmark_bar_view_.get(),
- delegate.Pass(), browser_->profile(), url,
+ std::move(delegate), browser_->profile(), url,
already_bookmarked);
}
@@ -1379,7 +1379,7 @@ void BrowserView::ShowOneClickSigninBubble(
anchor_view = toolbar_->location_bar();
OneClickSigninBubbleView::ShowBubble(type, email, error_message,
- delegate.Pass(), anchor_view,
+ std::move(delegate), anchor_view,
start_sync_callback);
}
#endif
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_ash.cc ('k') | chrome/browser/ui/views/infobars/alternate_nav_infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698