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

Unified Diff: chrome/common/extensions/api/extension_action/action_info.h

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
Index: chrome/common/extensions/api/extension_action/action_info.h
diff --git a/chrome/common/extensions/api/extension_action/action_info.h b/chrome/common/extensions/api/extension_action/action_info.h
index 1e2001d4e2b310ef2df0cafdca1379097d20e005..11f4cfdee87f1ce939d637814969124c700f65db 100644
--- a/chrome/common/extensions/api/extension_action/action_info.h
+++ b/chrome/common/extensions/api/extension_action/action_info.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
#define CHROME_COMMON_EXTENSIONS_API_EXTENSION_ACTION_ACTION_INFO_H_
+#include <memory>
#include <string>
#include "base/strings/string16.h"
@@ -33,9 +34,9 @@ struct ActionInfo {
};
// Loads an ActionInfo from the given DictionaryValue.
- static scoped_ptr<ActionInfo> Load(const Extension* extension,
- const base::DictionaryValue* dict,
- base::string16* error);
+ static std::unique_ptr<ActionInfo> Load(const Extension* extension,
+ const base::DictionaryValue* dict,
+ base::string16* error);
// Returns the extension's browser action, if any.
static const ActionInfo* GetBrowserActionInfo(const Extension* extension);

Powered by Google App Engine
This is Rietveld 408576698