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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/metrics/chrome_metrics_service_client.h" 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // static 159 // static
160 scoped_ptr<ChromeMetricsServiceClient> ChromeMetricsServiceClient::Create( 160 scoped_ptr<ChromeMetricsServiceClient> ChromeMetricsServiceClient::Create(
161 metrics::MetricsStateManager* state_manager, 161 metrics::MetricsStateManager* state_manager,
162 PrefService* local_state) { 162 PrefService* local_state) {
163 // Perform two-phase initialization so that |client->metrics_service_| only 163 // Perform two-phase initialization so that |client->metrics_service_| only
164 // receives pointers to fully constructed objects. 164 // receives pointers to fully constructed objects.
165 scoped_ptr<ChromeMetricsServiceClient> client( 165 scoped_ptr<ChromeMetricsServiceClient> client(
166 new ChromeMetricsServiceClient(state_manager)); 166 new ChromeMetricsServiceClient(state_manager));
167 client->Initialize(); 167 client->Initialize();
168 168
169 return client.Pass(); 169 return client;
170 } 170 }
171 171
172 // static 172 // static
173 void ChromeMetricsServiceClient::RegisterPrefs(PrefRegistrySimple* registry) { 173 void ChromeMetricsServiceClient::RegisterPrefs(PrefRegistrySimple* registry) {
174 metrics::MetricsService::RegisterPrefs(registry); 174 metrics::MetricsService::RegisterPrefs(registry);
175 metrics::StabilityMetricsHelper::RegisterPrefs(registry); 175 metrics::StabilityMetricsHelper::RegisterPrefs(registry);
176 176
177 #if BUILDFLAG(ANDROID_JAVA_UI) 177 #if BUILDFLAG(ANDROID_JAVA_UI)
178 AndroidMetricsProvider::RegisterPrefs(registry); 178 AndroidMetricsProvider::RegisterPrefs(registry);
179 #endif // BUILDFLAG(ANDROID_JAVA_UI) 179 #endif // BUILDFLAG(ANDROID_JAVA_UI)
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 break; 607 break;
608 608
609 default: 609 default:
610 NOTREACHED(); 610 NOTREACHED();
611 } 611 }
612 } 612 }
613 613
614 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { 614 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) {
615 metrics_service_->OnApplicationNotIdle(); 615 metrics_service_->OnApplicationNotIdle();
616 } 616 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698