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

Unified Diff: extensions/common/extensions_client.h

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/extension_set_unittest.cc ('k') | extensions/common/features/base_feature_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extensions_client.h
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
index 03876dc80ae3417b9b77a90f70666af3083643a6..7b0e9d3cff291020d882f33f8d7373bf07ddebb2 100644
--- a/extensions/common/extensions_client.h
+++ b/extensions/common/extensions_client.h
@@ -5,11 +5,11 @@
#ifndef EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
#define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
+#include <memory>
#include <set>
#include <string>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
#include "extensions/common/permissions/api_permission_set.h"
@@ -54,15 +54,15 @@ class ExtensionsClient {
virtual const std::string GetProductName() = 0;
// Create a FeatureProvider for a specific feature type, e.g. "permission".
- virtual scoped_ptr<FeatureProvider> CreateFeatureProvider(
+ virtual std::unique_ptr<FeatureProvider> CreateFeatureProvider(
const std::string& name) const = 0;
// Create a JSONFeatureProviderSource for a specific feature type,
// e.g. "permission". Currently, all features are loaded from
// JSONFeatureProviderSources.
// This is used primarily in CreateFeatureProvider, above.
- virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
- const std::string& name) const = 0;
+ virtual std::unique_ptr<JSONFeatureProviderSource>
+ CreateFeatureProviderSource(const std::string& name) const = 0;
// Takes the list of all hosts and filters out those with special
// permission strings. Adds the regular hosts to |new_hosts|,
« no previous file with comments | « extensions/common/extension_set_unittest.cc ('k') | extensions/common/features/base_feature_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698