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

Unified Diff: chrome/browser/extensions/extension_action_storage_manager.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/extension_action_storage_manager.cc
diff --git a/chrome/browser/extensions/extension_action_storage_manager.cc b/chrome/browser/extensions/extension_action_storage_manager.cc
index 148a3c9e5390df6934017a07fef6b7eee79822e2..acb0c38d20f14a2efced4128e4562763f723ba12 100644
--- a/chrome/browser/extensions/extension_action_storage_manager.cc
+++ b/chrome/browser/extensions/extension_action_storage_manager.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/extensions/extension_action_storage_manager.h"
#include <stdint.h>
+#include <utility>
#include "base/base64.h"
#include "base/bind.h"
@@ -184,7 +185,7 @@ scoped_ptr<base::DictionaryValue> DefaultsToValue(ExtensionAction* action) {
std::string size_string = base::IntToString(size);
icon_value->SetString(size_string, BitmapToString(rep.sk_bitmap()));
}
- dict->Set(kIconStorageKey, icon_value.Pass());
+ dict->Set(kIconStorageKey, std::move(icon_value));
}
return dict;
}
@@ -246,8 +247,7 @@ void ExtensionActionStorageManager::WriteToStorage(
scoped_ptr<base::DictionaryValue> defaults =
DefaultsToValue(extension_action);
store->SetExtensionValue(extension_action->extension_id(),
- kBrowserActionStorageKey,
- defaults.Pass());
+ kBrowserActionStorageKey, std::move(defaults));
}
}
« no previous file with comments | « chrome/browser/extensions/extension_action_manager.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698