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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 25484004: Don't commit prefs::kStabilitySessionEndCompleted change immediately on chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index a48c7e2a46bf8ce4e0410ecaf4b25ef5362bec0d..28cecddd97a4908440fc7992c279df101de81731 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -362,13 +362,10 @@ void BrowserProcessImpl::EndSession() {
// Tell the metrics service it was cleanly shutdown.
MetricsService* metrics = g_browser_process->metrics_service();
- if (metrics && local_state()) {
+ // MetricsService::RecordStartOfSessionEnd writes to prefs immediately.
jar (doing other things) 2013/10/02 01:18:31 Can you point to where this happens? I don't see
+ if (metrics && local_state())
metrics->RecordStartOfSessionEnd();
- // MetricsService lazily writes to prefs, force it to write now.
- local_state()->CommitPendingWrite();
- }
-
// http://crbug.com/125207
base::ThreadRestrictions::ScopedAllowWait allow_wait;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698