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

Unified Diff: extensions/browser/api/messaging/native_message_host.h

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
Index: extensions/browser/api/messaging/native_message_host.h
diff --git a/extensions/browser/api/messaging/native_message_host.h b/extensions/browser/api/messaging/native_message_host.h
index da241e06f83f9f2c8300dd484aee936394616a54..2d4b82f312fa75532f3b5313d8cde84624be0403 100644
--- a/extensions/browser/api/messaging/native_message_host.h
+++ b/extensions/browser/api/messaging/native_message_host.h
@@ -5,9 +5,9 @@
#ifndef EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGE_HOST_H_
#define EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGE_HOST_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
#include "base/single_thread_task_runner.h"
#include "ui/gfx/native_widget_types.h"
@@ -37,7 +37,7 @@ class NativeMessageHost {
};
// Creates the NativeMessageHost based on the |native_host_name|.
- static scoped_ptr<NativeMessageHost> Create(
+ static std::unique_ptr<NativeMessageHost> Create(
gfx::NativeView native_view,
const std::string& source_extension_id,
const std::string& native_host_name,

Powered by Google App Engine
This is Rietveld 408576698