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

Unified Diff: chrome/browser/extensions/theme_installed_infobar_delegate.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/extensions/theme_installed_infobar_delegate.cc
diff --git a/chrome/browser/extensions/theme_installed_infobar_delegate.cc b/chrome/browser/extensions/theme_installed_infobar_delegate.cc
index 90531b2d51830742582e240b1d6d5e429f2fbd18..f09727551b32037e2521b7315ee7b284326b0b0c 100644
--- a/chrome/browser/extensions/theme_installed_infobar_delegate.cc
+++ b/chrome/browser/extensions/theme_installed_infobar_delegate.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/extensions/theme_installed_infobar_delegate.h"
#include <stddef.h>
-
#include <string>
+#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
@@ -70,7 +70,7 @@ void ThemeInstalledInfoBarDelegate::Create(
// and keep the first install info bar, so that they can easily undo to
// get back the previous theme.
if (theme_infobar->theme_id_ != new_theme->id()) {
- infobar_service->ReplaceInfoBar(old_infobar, new_infobar.Pass());
+ infobar_service->ReplaceInfoBar(old_infobar, std::move(new_infobar));
theme_service->OnInfobarDisplayed();
}
return;
@@ -78,7 +78,7 @@ void ThemeInstalledInfoBarDelegate::Create(
}
// No previous theme infobar, so add this.
- infobar_service->AddInfoBar(new_infobar.Pass());
+ infobar_service->AddInfoBar(std::move(new_infobar));
theme_service->OnInfobarDisplayed();
}

Powered by Google App Engine
This is Rietveld 408576698