class SessionsGetRecentlyClosedFunction : public ChromeSyncExtensionFunction {
protected:
- virtual ~SessionsGetRecentlyClosedFunction() {}
- virtual bool RunSync() OVERRIDE;
+ ~SessionsGetRecentlyClosedFunction() override {}
+ bool RunSync() override;
DECLARE_EXTENSION_FUNCTION("sessions.getRecentlyClosed",
SESSIONS_GETRECENTLYCLOSED)
class SessionsGetDevicesFunction : public ChromeSyncExtensionFunction {
protected:
- virtual ~SessionsGetDevicesFunction() {}
- virtual bool RunSync() OVERRIDE;
+ ~SessionsGetDevicesFunction() override {}
+ bool RunSync() override;
DECLARE_EXTENSION_FUNCTION("sessions.getDevices", SESSIONS_GETDEVICES)
private:
class SessionsRestoreFunction : public ChromeSyncExtensionFunction {
protected:
- virtual ~SessionsRestoreFunction() {}
- virtual bool RunSync() OVERRIDE;
+ ~SessionsRestoreFunction() override {}
+ bool RunSync() override;
DECLARE_EXTENSION_FUNCTION("sessions.restore", SESSIONS_RESTORE)
private:
class SessionsEventRouter : public TabRestoreServiceObserver {
public:
explicit SessionsEventRouter(Profile* profile);
- virtual ~SessionsEventRouter();
+ ~SessionsEventRouter() override;
// Observer callback for TabRestoreServiceObserver. Sends data on
// recently closed tabs to the javascript side of this page to
// display to the user.
- virtual void TabRestoreServiceChanged(TabRestoreService* service) OVERRIDE;
+ void TabRestoreServiceChanged(TabRestoreService* service) override;
// Observer callback to notice when our associated TabRestoreService
// is destroyed.
- virtual void TabRestoreServiceDestroyed(TabRestoreService* service) OVERRIDE;
+ void TabRestoreServiceDestroyed(TabRestoreService* service) override;
private:
Profile* profile_;
public extensions::EventRouter::Observer {
public:
explicit SessionsAPI(content::BrowserContext* context);
- virtual ~SessionsAPI();
+ ~SessionsAPI() override;
// BrowserContextKeyedService implementation.
- virtual void Shutdown() OVERRIDE;
+ void Shutdown() override;
// BrowserContextKeyedAPI implementation.
static BrowserContextKeyedAPIFactory<SessionsAPI>* GetFactoryInstance();
// EventRouter::Observer implementation.
- virtual void OnListenerAdded(const extensions::EventListenerInfo& details)
- OVERRIDE;
+ void OnListenerAdded(const extensions::EventListenerInfo& details) override;
private:
friend class BrowserContextKeyedAPIFactory<SessionsAPI>;