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

Unified Diff: chrome/browser/extensions/api/braille_display_private/braille_display_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/braille_display_private/braille_display_private_api.h
diff --git a/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h b/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h
index c1b23e77e722f46b246a430ed0cfdfc55d242ee9..552e1f752e6043574ebec4384d033a30d358e94a 100644
--- a/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h
+++ b/chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h
@@ -53,7 +53,7 @@ class BrailleDisplayPrivateAPI : public BrowserContextKeyedAPI,
class EventDelegate {
public:
virtual ~EventDelegate() {}
- virtual void BroadcastEvent(scoped_ptr<Event> event) = 0;
+ virtual void BroadcastEvent(std::unique_ptr<Event> event) = 0;
virtual bool HasListener() = 0;
};
@@ -63,12 +63,12 @@ class BrailleDisplayPrivateAPI : public BrowserContextKeyedAPI,
// the active profile.
bool IsProfileActive();
- void SetEventDelegateForTest(scoped_ptr<EventDelegate> delegate);
+ void SetEventDelegateForTest(std::unique_ptr<EventDelegate> delegate);
Profile* profile_;
ScopedObserver<api::braille_display_private::BrailleController,
BrailleObserver> scoped_observer_;
- scoped_ptr<EventDelegate> event_delegate_;
+ std::unique_ptr<EventDelegate> event_delegate_;
// BrowserContextKeyedAPI implementation.
static const char* service_name() {
@@ -103,7 +103,7 @@ class BrailleDisplayPrivateWriteDotsFunction : public AsyncApiFunction {
bool Respond() override;
private:
- scoped_ptr<braille_display_private::WriteDots::Params> params_;
+ std::unique_ptr<braille_display_private::WriteDots::Params> params_;
};
} // namespace api

Powered by Google App Engine
This is Rietveld 408576698