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

Unified Diff: chrome/browser/extensions/api/sessions/sessions_api.h

Issue 1642583002: Fix bug with invalid chrome.sessions.onChanged listener. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/sessions/sessions_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/sessions/sessions_api.h
diff --git a/chrome/browser/extensions/api/sessions/sessions_api.h b/chrome/browser/extensions/api/sessions/sessions_api.h
index de6e9e7db3f56ea75c5c7f252c6ca13bc18bad34..832dd67ee3236d9bc8a0cd61ac11319a966a1a74 100644
--- a/chrome/browser/extensions/api/sessions/sessions_api.h
+++ b/chrome/browser/extensions/api/sessions/sessions_api.h
@@ -85,7 +85,8 @@ class SessionsRestoreFunction : public ChromeSyncExtensionFunction {
class SessionsEventRouter : public sessions::TabRestoreServiceObserver {
public:
- explicit SessionsEventRouter(Profile* profile);
+ explicit SessionsEventRouter(Profile* profile,
+ EventRouter::Observer* observer);
~SessionsEventRouter() override;
// Observer callback for TabRestoreServiceObserver. Sends data on
@@ -100,6 +101,7 @@ class SessionsEventRouter : public sessions::TabRestoreServiceObserver {
private:
Profile* profile_;
+ EventRouter::Observer* observer_;
// TabRestoreService that we are observing.
sessions::TabRestoreService* tab_restore_service_;
« no previous file with comments | « no previous file | chrome/browser/extensions/api/sessions/sessions_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698