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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/event_router.cc

Issue 961593002: Merge: Update the Drive state in Files app when the refresh token is fetched. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 10 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 | « chrome/browser/chromeos/extensions/file_manager/event_router.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager/event_router.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.cc b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
index 97fab2ea18139529b84dd177fa1828294fa47f83..9adea20c941f3d5738801629cbbfde31b69c05f5 100644
--- a/chrome/browser/chromeos/extensions/file_manager/event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/event_router.cc
@@ -827,6 +827,16 @@ void EventRouter::OnRefreshTokenInvalid() {
file_manager_private::OnDriveConnectionStatusChanged::Create());
}
+void EventRouter::OnReadyToSendRequests() {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ // Raise a DriveConnectionStatusChanged event to notify the status online.
+ BroadcastEvent(
+ profile_,
+ file_manager_private::OnDriveConnectionStatusChanged::kEventName,
+ file_manager_private::OnDriveConnectionStatusChanged::Create());
+}
+
void EventRouter::HandleFileWatchNotification(const drive::FileChange* list,
const base::FilePath& local_path,
bool got_error) {
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/event_router.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698