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

Unified Diff: extensions/common/message_bundle.cc

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 months 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/manifest_url_handlers.cc ('k') | extensions/common/message_bundle_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/message_bundle.cc
diff --git a/extensions/common/message_bundle.cc b/extensions/common/message_bundle.cc
index ef78a0a7d5cc49f2c2e56a2b04f33f44d54450dc..104bbae1be9d4f89ee4e7235f1886a519b62af7b 100644
--- a/extensions/common/message_bundle.cc
+++ b/extensions/common/message_bundle.cc
@@ -4,6 +4,7 @@
#include "extensions/common/message_bundle.h"
+#include <memory>
#include <string>
#include <vector>
@@ -11,7 +12,6 @@
#include "base/i18n/rtl.h"
#include "base/lazy_instance.h"
#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
@@ -59,7 +59,7 @@ static bool BadKeyMessage(const std::string& name, std::string* error) {
// static
MessageBundle* MessageBundle::Create(const CatalogVector& locale_catalogs,
std::string* error) {
- scoped_ptr<MessageBundle> message_bundle(new MessageBundle);
+ std::unique_ptr<MessageBundle> message_bundle(new MessageBundle);
if (!message_bundle->Init(locale_catalogs, error))
return NULL;
« no previous file with comments | « extensions/common/manifest_url_handlers.cc ('k') | extensions/common/message_bundle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698