Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
index 08fd025b4b565495cb7b3a4691f3dd0e959cc67a..4dca846d888720b234b07d0e578c18046399f3b4 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
@@ -50,6 +50,7 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "components/bookmarks/browser/bookmark_model.h" |
+#include "components/metrics/metrics_service.h" |
#include "content/public/browser/notification_details.h" |
#include "content/public/browser/notification_source.h" |
#include "content/public/browser/page_navigator.h" |
@@ -1002,8 +1003,7 @@ void BookmarkBarView::BookmarkMenuControllerDeleted( |
} |
void BookmarkBarView::ShowImportDialog() { |
- int64 install_time = |
- g_browser_process->local_state()->GetInt64(prefs::kInstallDate); |
+ int64 install_time = g_browser_process->metrics_service()->GetInstallDate(); |
int64 time_from_install = base::Time::Now().ToTimeT() - install_time; |
if (bookmark_bar_state_ == BookmarkBar::SHOW) { |
UMA_HISTOGRAM_COUNTS("Import.ShowDialog.FromBookmarkBarView", |