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

Unified Diff: chrome/browser/extensions/api/language_settings_private/language_settings_private_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/api/language_settings_private/language_settings_private_delegate.cc
diff --git a/chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate.cc b/chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate.cc
index 6204394c5701573c429e74b4342f4f474571834b..cca5f7251bdb223b1472958274af1c759dce3807 100644
--- a/chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate.cc
+++ b/chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate.h"
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -85,9 +86,9 @@ LanguageSettingsPrivateDelegate::GetHunspellDictionaryStatuses() {
if (dictionary->IsDownloadFailure())
status->download_failed.reset(new bool(true));
}
- statuses.push_back(status.Pass());
+ statuses.push_back(std::move(status));
}
- return statuses.Pass();
+ return statuses;
}
void LanguageSettingsPrivateDelegate::Shutdown() {
@@ -164,8 +165,8 @@ void LanguageSettingsPrivateDelegate::OnCustomDictionaryChanged(
scoped_ptr<Event> extension_event(new Event(
events::LANGUAGE_SETTINGS_PRIVATE_ON_CUSTOM_DICTIONARY_CHANGED,
language_settings_private::OnCustomDictionaryChanged::kEventName,
- args.Pass()));
- EventRouter::Get(context_)->BroadcastEvent(extension_event.Pass());
+ std::move(args)));
+ EventRouter::Get(context_)->BroadcastEvent(std::move(extension_event));
}
void LanguageSettingsPrivateDelegate::RefreshDictionaries(
@@ -249,8 +250,8 @@ void LanguageSettingsPrivateDelegate::BroadcastDictionariesChangedEvent() {
scoped_ptr<extensions::Event> extension_event(new extensions::Event(
events::LANGUAGE_SETTINGS_PRIVATE_ON_SPELLCHECK_DICTIONARIES_CHANGED,
language_settings_private::OnSpellcheckDictionariesChanged::kEventName,
- args.Pass()));
- EventRouter::Get(context_)->BroadcastEvent(extension_event.Pass());
+ std::move(args)));
+ EventRouter::Get(context_)->BroadcastEvent(std::move(extension_event));
}
void LanguageSettingsPrivateDelegate::RemoveDictionaryObservers() {

Powered by Google App Engine
This is Rietveld 408576698