Commit cc98a7e0 authored by erikwright's avatar erikwright Committed by Commit bot

Convert this static method to a member method.

BUG=412398

Review URL: https://codereview.chromium.org/552393002

Cr-Commit-Position: refs/heads/master@{#294021}
parent c8e067f6
......@@ -1428,8 +1428,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// http://crbug.com/179143
#if !defined(OS_ANDROID)
// Start watching for a hang.
metrics::MetricsService::LogNeedForCleanShutdown(
g_browser_process->local_state());
browser_process_->metrics_service()->LogNeedForCleanShutdown();
#endif
#if defined(ENABLE_FULL_PRINTING)
......
......@@ -518,8 +518,8 @@ void MetricsService::OnAppEnterForeground() {
StartSchedulerIfNecessary();
}
#else
void MetricsService::LogNeedForCleanShutdown(PrefService* local_state) {
local_state->SetBoolean(metrics::prefs::kStabilityExitedCleanly, false);
void MetricsService::LogNeedForCleanShutdown() {
local_state_->SetBoolean(metrics::prefs::kStabilityExitedCleanly, false);
// Redundant setting to be sure we call for a clean shutdown.
clean_shutdown_status_ = NEED_TO_SHUTDOWN;
}
......
......@@ -179,7 +179,7 @@ class MetricsService : public base::HistogramFlattener {
void OnAppEnterForeground();
#else
// Set the dirty flag, which will require a later call to LogCleanShutdown().
static void LogNeedForCleanShutdown(PrefService* local_state);
void LogNeedForCleanShutdown();
#endif // defined(OS_ANDROID) || defined(OS_IOS)
static void SetExecutionPhase(ExecutionPhase execution_phase,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment