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

Unified Diff: chrome/browser/extensions/api/tabs/windows_event_router.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/tabs/windows_event_router.h
diff --git a/chrome/browser/extensions/api/tabs/windows_event_router.h b/chrome/browser/extensions/api/tabs/windows_event_router.h
index 8ead6e1555058b060aa4aeb71406822e096becff..7c7041db3bfb9552adc116b0c3fdfa839cfc974f 100644
--- a/chrome/browser/extensions/api/tabs/windows_event_router.h
+++ b/chrome/browser/extensions/api/tabs/windows_event_router.h
@@ -6,10 +6,10 @@
#define CHROME_BROWSER_EXTENSIONS_API_TABS_WINDOWS_EVENT_ROUTER_H_
#include <map>
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/scoped_observer.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/window_controller_list_observer.h"
@@ -73,7 +73,7 @@ class WindowsEventRouter : public AppWindowRegistry::Observer,
void DispatchEvent(events::HistogramValue histogram_value,
const std::string& event_name,
WindowController* window_controller,
- scoped_ptr<base::ListValue> args);
+ std::unique_ptr<base::ListValue> args);
bool HasEventListener(const std::string& event_name);
void AddAppWindow(extensions::AppWindow* app_window);
@@ -91,7 +91,7 @@ class WindowsEventRouter : public AppWindowRegistry::Observer,
// windows.onFocusChanged events with the same windowId.
int focused_window_id_;
- using AppWindowMap = std::map<int, scoped_ptr<AppWindowController>>;
+ using AppWindowMap = std::map<int, std::unique_ptr<AppWindowController>>;
// Map of application windows, the key to the session of the app window.
AppWindowMap app_windows_;
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_windows_api.h ('k') | chrome/browser/extensions/api/tabs/windows_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698