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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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/browser/extensions/api/developer_private/developer_private_api.h
diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.h b/chrome/browser/extensions/api/developer_private/developer_private_api.h
index ffbf718289f1ef42b1947f309aa72b1763859c6d..25d2a5d479c408ddd82b5144932d4b1ea4de6ab8 100644
--- a/chrome/browser/extensions/api/developer_private/developer_private_api.h
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api.h
@@ -131,7 +131,7 @@ class DeveloperPrivateEventRouter : public ExtensionRegistryObserver,
void BroadcastItemStateChangedHelper(
api::developer_private::EventType event_type,
const std::string& extension_id,
- scoped_ptr<ExtensionInfoGenerator> info_generator,
+ std::unique_ptr<ExtensionInfoGenerator> info_generator,
std::vector<api::developer_private::ExtensionInfo> infos);
ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
@@ -218,7 +218,7 @@ class DeveloperPrivateAPI : public BrowserContextKeyedAPI,
base::FilePath last_unpacked_directory_;
// Created lazily upon OnListenerAdded.
- scoped_ptr<DeveloperPrivateEventRouter> developer_private_event_router_;
+ std::unique_ptr<DeveloperPrivateEventRouter> developer_private_event_router_;
DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateAPI);
};
@@ -262,7 +262,7 @@ class DeveloperPrivateGetItemsInfoFunction
void OnInfosGenerated(
std::vector<api::developer_private::ExtensionInfo> infos);
- scoped_ptr<ExtensionInfoGenerator> info_generator_;
+ std::unique_ptr<ExtensionInfoGenerator> info_generator_;
DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetItemsInfoFunction);
};
@@ -281,7 +281,7 @@ class DeveloperPrivateGetExtensionsInfoFunction
void OnInfosGenerated(
std::vector<api::developer_private::ExtensionInfo> infos);
- scoped_ptr<ExtensionInfoGenerator> info_generator_;
+ std::unique_ptr<ExtensionInfoGenerator> info_generator_;
DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetExtensionsInfoFunction);
};
@@ -300,7 +300,7 @@ class DeveloperPrivateGetExtensionInfoFunction
void OnInfosGenerated(
std::vector<api::developer_private::ExtensionInfo> infos);
- scoped_ptr<ExtensionInfoGenerator> info_generator_;
+ std::unique_ptr<ExtensionInfoGenerator> info_generator_;
DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetExtensionInfoFunction);
};
@@ -527,7 +527,7 @@ class DeveloperPrivateRequestFileSourceFunction
private:
void Finish(const std::string& file_contents);
- scoped_ptr<api::developer_private::RequestFileSource::Params> params_;
+ std::unique_ptr<api::developer_private::RequestFileSource::Params> params_;
};
class DeveloperPrivateOpenDevToolsFunction

Powered by Google App Engine
This is Rietveld 408576698