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

Unified Diff: chromecast/browser/metrics/cast_metrics_service_client.cc

Issue 1161133004: Delete code corresponding to old UMA prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore enable date pref set and update Chromecast code. Created 5 years, 7 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 | components/metrics/metrics_pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/metrics/cast_metrics_service_client.cc
diff --git a/chromecast/browser/metrics/cast_metrics_service_client.cc b/chromecast/browser/metrics/cast_metrics_service_client.cc
index 51f96ccfb06426e5c39c0469c896600c40cc9d8f..c9222d59071bb8961db8ae17d11f6654281a9435 100644
--- a/chromecast/browser/metrics/cast_metrics_service_client.cc
+++ b/chromecast/browser/metrics/cast_metrics_service_client.cc
@@ -70,16 +70,9 @@ scoped_ptr< ::metrics::ClientInfo> CastMetricsServiceClient::LoadClientInfo() {
// kMetricsIsNewClientID would be missing if either the device was just
// FDR'ed, or it is on pre-v1.2 build.
if (!pref_service_->GetBoolean(prefs::kMetricsIsNewClientID)) {
- // If the old client id exists, the device must be on pre-v1.2 build,
- // instead of just being FDR'ed.
- if (!pref_service_->GetString(::metrics::prefs::kMetricsOldClientID)
gfhuang 2015/05/29 19:54:03 can you keep this logic and just make a local "co
Alexei Svitkine (slow) 2015/05/29 20:13:23 Done.
- .empty()) {
- // Force old client id to be regenerated. See b/9487011.
- client_info->client_id = base::GenerateGUID();
- pref_service_->SetBoolean(prefs::kMetricsIsNewClientID, true);
- return client_info.Pass();
- }
- // else the device was just FDR'ed, pass through.
+ client_info->client_id = base::GenerateGUID();
+ pref_service_->SetBoolean(prefs::kMetricsIsNewClientID, true);
+ return client_info.Pass();
}
const std::string client_id(GetPlatformClientID(cast_service_));
« no previous file with comments | « no previous file | components/metrics/metrics_pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698