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

Unified Diff: chrome/common/extensions/manifest_handlers/automation.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/manifest_handlers/automation.h
diff --git a/chrome/common/extensions/manifest_handlers/automation.h b/chrome/common/extensions/manifest_handlers/automation.h
index 1569b07f1da840feede9ab1c0f5195f5ba5e3d02..afbaee16e75bf33aeb50f94bf74736247ed16e61 100644
--- a/chrome/common/extensions/manifest_handlers/automation.h
+++ b/chrome/common/extensions/manifest_handlers/automation.h
@@ -5,10 +5,10 @@
#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_AUTOMATION_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_AUTOMATION_H_
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler.h"
#include "extensions/common/url_pattern_set.h"
@@ -38,12 +38,12 @@ extern const char kErrorNoMatchesProvided[];
struct AutomationInfo : public Extension::ManifestData {
public:
static const AutomationInfo* Get(const Extension* extension);
- static scoped_ptr<AutomationInfo> FromValue(
+ static std::unique_ptr<AutomationInfo> FromValue(
const base::Value& value,
std::vector<InstallWarning>* install_warnings,
base::string16* error);
- static scoped_ptr<base::Value> ToValue(const AutomationInfo& info);
+ static std::unique_ptr<base::Value> ToValue(const AutomationInfo& info);
~AutomationInfo() override;
// true if the extension has requested 'desktop' permission.
@@ -61,7 +61,7 @@ struct AutomationInfo : public Extension::ManifestData {
AutomationInfo();
AutomationInfo(bool desktop, URLPatternSet matches, bool interact);
- static scoped_ptr<api::manifest_types::Automation> AsManifestType(
+ static std::unique_ptr<api::manifest_types::Automation> AsManifestType(
const AutomationInfo& info);
DISALLOW_COPY_AND_ASSIGN(AutomationInfo);

Powered by Google App Engine
This is Rietveld 408576698