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

Unified Diff: extensions/common/extension_l10n_util_unittest.cc

Issue 2500573003: Some easy linked_ptr removal from extensions/common/ (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « extensions/common/extension_l10n_util.cc ('k') | extensions/common/message_bundle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_l10n_util_unittest.cc
diff --git a/extensions/common/extension_l10n_util_unittest.cc b/extensions/common/extension_l10n_util_unittest.cc
index f23b424796a2b55e0e9dc748351c6ce188bb1fcc..3caba365958e17b44483c173ecbbe6a4e21157b1 100644
--- a/extensions/common/extension_l10n_util_unittest.cc
+++ b/extensions/common/extension_l10n_util_unittest.cc
@@ -9,7 +9,6 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
-#include "base/memory/linked_ptr.h"
#include "base/memory/ptr_util.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
@@ -211,7 +210,7 @@ TEST(ExtensionL10nUtil, LoadMessageCatalogsDuplicateKeys) {
// Caller owns the returned object.
MessageBundle* CreateManifestBundle() {
- linked_ptr<base::DictionaryValue> catalog(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> catalog(new base::DictionaryValue);
base::DictionaryValue* name_tree = new base::DictionaryValue();
name_tree->SetString("message", "name");
@@ -259,8 +258,8 @@ MessageBundle* CreateManifestBundle() {
url_country_tree->SetString("message", "de");
catalog->Set("country", url_country_tree);
- std::vector<linked_ptr<base::DictionaryValue> > catalogs;
- catalogs.push_back(catalog);
+ std::vector<std::unique_ptr<base::DictionaryValue>> catalogs;
+ catalogs.push_back(std::move(catalog));
std::string error;
MessageBundle* bundle = MessageBundle::Create(catalogs, &error);
« no previous file with comments | « extensions/common/extension_l10n_util.cc ('k') | extensions/common/message_bundle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698