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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 370813003: Move kInstallDate from chrome/common/pref_names.h to components/metrics/metrics_pref_names.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index 9996205e856c3dc0d652b147fb9b098d3beaf720..aa361771354aa8d57efde3a7870a775f501153d1 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -28,6 +28,7 @@
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/autofill/validation_rules_storage_factory.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/metrics/metrics_services_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/autofill/autofill_dialog_common.h"
#include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h"
@@ -64,6 +65,7 @@
#include "components/autofill/core/browser/validation.h"
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/autofill/core/common/form_data.h"
+#include "components/metrics/metrics_service.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/geolocation_provider.h"
@@ -2833,8 +2835,10 @@ void AutofillDialogControllerImpl::LoadRiskFingerprintData() {
std::string charset = user_prefs->GetString(::prefs::kDefaultCharset);
std::string accept_languages =
user_prefs->GetString(::prefs::kAcceptLanguages);
- base::Time install_time = base::Time::FromTimeT(
- g_browser_process->local_state()->GetInt64(::prefs::kInstallDate));
+ base::Time install_time =
+ base::Time::FromTimeT(g_browser_process->GetMetricsServicesManager()
+ ->GetMetricsService()
Ilya Sherman 2014/07/08 03:26:33 nit: "g_browser_process->metrics_service()"
gab 2014/07/08 17:41:02 Done.
+ ->GetInstallDate());
risk::GetFingerprint(
obfuscated_gaia_id, window_bounds, web_contents(),

Powered by Google App Engine
This is Rietveld 408576698