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

Unified Diff: chrome/browser/sessions/session_service.cc

Issue 2858005: Created notification for when a session is saved.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/sessions/session_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_service.cc
===================================================================
--- chrome/browser/sessions/session_service.cc (revision 50107)
+++ chrome/browser/sessions/session_service.cc (working copy)
@@ -431,8 +431,13 @@
void SessionService::Save() {
bool had_commands = !pending_commands().empty();
BaseSessionService::Save();
- if (had_commands)
+ if (had_commands) {
RecordSaveHistogramData();
+ NotificationService::current()->Notify(
+ NotificationType::SESSION_SERVICE_SAVED,
+ NotificationService::AllSources(),
+ NotificationService::NoDetails());
+ }
}
« no previous file with comments | « no previous file | chrome/browser/sessions/session_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698