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

Unified Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_connection_manager.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/easy_unlock_private/easy_unlock_private_connection_manager.h
diff --git a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_connection_manager.h b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_connection_manager.h
index f7a0aa7bc86f716be23a2d5ae02ab9bddf33282b..be4e4aceb13e77c29ff6be489f23ef0fc1d0956d 100644
--- a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_connection_manager.h
+++ b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_connection_manager.h
@@ -5,11 +5,11 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_CONNECTION_MANAGER_H_
#define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_CONNECTION_MANAGER_H_
+#include <memory>
#include <set>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_connection.h"
#include "chrome/common/extensions/api/easy_unlock_private.h"
#include "components/proximity_auth/connection.h"
@@ -35,7 +35,7 @@ class EasyUnlockPrivateConnectionManager
// Stores |connection| in the API connection manager. Returns the
// |connection_id|.
int AddConnection(const Extension* extension,
- scoped_ptr<proximity_auth::Connection> connection,
+ std::unique_ptr<proximity_auth::Connection> connection,
bool persistent);
// Returns the status of the connection with |connection_id|.
@@ -76,7 +76,7 @@ class EasyUnlockPrivateConnectionManager
void DispatchConnectionEvent(const std::string& event_name,
events::HistogramValue histogram_value,
const proximity_auth::Connection* connection,
- scoped_ptr<base::ListValue> args);
+ std::unique_ptr<base::ListValue> args);
// Convenience method to get the API resource manager.
ApiResourceManager<EasyUnlockPrivateConnection>* GetResourceManager() const;

Powered by Google App Engine
This is Rietveld 408576698