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

Unified Diff: extensions/browser/api/socket/app_firewall_hole_manager.cc

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr 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
« no previous file with comments | « extensions/browser/api/socket/app_firewall_hole_manager.h ('k') | extensions/browser/api/socket/socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/socket/app_firewall_hole_manager.cc
diff --git a/extensions/browser/api/socket/app_firewall_hole_manager.cc b/extensions/browser/api/socket/app_firewall_hole_manager.cc
index f5973734081a1d41c1f3da9718a6a9f67f7fa49e..db9d3d76d2653c727fe23efece0a2a81a6052713 100644
--- a/extensions/browser/api/socket/app_firewall_hole_manager.cc
+++ b/extensions/browser/api/socket/app_firewall_hole_manager.cc
@@ -97,7 +97,7 @@ void AppFirewallHole::SetVisible(bool app_visible) {
}
void AppFirewallHole::OnFirewallHoleOpened(
- scoped_ptr<FirewallHole> firewall_hole) {
+ std::unique_ptr<FirewallHole> firewall_hole) {
if (app_visible_) {
DCHECK(!firewall_hole_);
firewall_hole_ = std::move(firewall_hole);
@@ -117,11 +117,11 @@ AppFirewallHoleManager* AppFirewallHoleManager::Get(BrowserContext* context) {
return AppFirewallHoleManagerFactory::GetForBrowserContext(context, true);
}
-scoped_ptr<AppFirewallHole> AppFirewallHoleManager::Open(
+std::unique_ptr<AppFirewallHole> AppFirewallHoleManager::Open(
AppFirewallHole::PortType type,
uint16_t port,
const std::string& extension_id) {
- scoped_ptr<AppFirewallHole> hole(
+ std::unique_ptr<AppFirewallHole> hole(
new AppFirewallHole(this, type, port, extension_id));
tracked_holes_.insert(std::make_pair(extension_id, hole.get()));
if (HasVisibleAppWindows(context_, extension_id)) {
« no previous file with comments | « extensions/browser/api/socket/app_firewall_hole_manager.h ('k') | extensions/browser/api/socket/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698