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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2528173003: Desktop fast shutdown experiment (Closed)
Patch Set: Put features in 'features' namespace Created 4 years 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/chrome_browser_field_trials_desktop.cc ('k') | chrome/browser/features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 3b02122611bd9780277972e204e75b338839e0de..89aa0105bbac96291d7b3d8a6e57a45a384a93d4 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -176,7 +176,9 @@
#include "chrome/browser/metrics/thread_watcher_android.h"
#include "ui/base/resource/resource_bundle_android.h"
#else
+#include "chrome/browser/features.h"
#include "chrome/browser/feedback/feedback_profile_observer.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#endif // defined(OS_ANDROID)
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
@@ -1982,6 +1984,12 @@ bool ChromeBrowserMainParts::MainMessageLoopRun(int* result_code) {
g_browser_process->local_state());
run_loop.Run();
+ if (base::FeatureList::IsEnabled(features::kDesktopFastShutdown)) {
+ // Experiment to determine the impact of always taking the quick exit path.
+ // There is no returning from this call as it terminates the process.
+ chrome::SessionEnding();
+ }
+
return true;
#endif // defined(OS_ANDROID)
}
« no previous file with comments | « chrome/browser/chrome_browser_field_trials_desktop.cc ('k') | chrome/browser/features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698