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() { ...@@ -1428,8 +1428,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// http://crbug.com/179143 // http://crbug.com/179143
#if !defined(OS_ANDROID) #if !defined(OS_ANDROID)
// Start watching for a hang. // Start watching for a hang.
metrics::MetricsService::LogNeedForCleanShutdown( browser_process_->metrics_service()->LogNeedForCleanShutdown();
g_browser_process->local_state());
#endif #endif
#if defined(ENABLE_FULL_PRINTING) #if defined(ENABLE_FULL_PRINTING)
......
...@@ -518,8 +518,8 @@ void MetricsService::OnAppEnterForeground() { ...@@ -518,8 +518,8 @@ void MetricsService::OnAppEnterForeground() {
StartSchedulerIfNecessary(); StartSchedulerIfNecessary();
} }
#else #else
void MetricsService::LogNeedForCleanShutdown(PrefService* local_state) { void MetricsService::LogNeedForCleanShutdown() {
local_state->SetBoolean(metrics::prefs::kStabilityExitedCleanly, false); local_state_->SetBoolean(metrics::prefs::kStabilityExitedCleanly, false);
// Redundant setting to be sure we call for a clean shutdown. // Redundant setting to be sure we call for a clean shutdown.
clean_shutdown_status_ = NEED_TO_SHUTDOWN; clean_shutdown_status_ = NEED_TO_SHUTDOWN;
} }
......
...@@ -179,7 +179,7 @@ class MetricsService : public base::HistogramFlattener { ...@@ -179,7 +179,7 @@ class MetricsService : public base::HistogramFlattener {
void OnAppEnterForeground(); void OnAppEnterForeground();
#else #else
// Set the dirty flag, which will require a later call to LogCleanShutdown(). // 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) #endif // defined(OS_ANDROID) || defined(OS_IOS)
static void SetExecutionPhase(ExecutionPhase execution_phase, 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