| Index: chrome/browser/ui/app_list/app_list_service_impl.cc
|
| diff --git a/chrome/browser/ui/app_list/app_list_service_impl.cc b/chrome/browser/ui/app_list/app_list_service_impl.cc
|
| index 3808fee61706a952be5251d787ac969d2737f888..57397697e8fd66d3db61fcb57c1763253a74ae02 100644
|
| --- a/chrome/browser/ui/app_list/app_list_service_impl.cc
|
| +++ b/chrome/browser/ui/app_list/app_list_service_impl.cc
|
| @@ -213,6 +213,7 @@ void AppListServiceImpl::RecordAppListLaunch() {
|
| prefs::kAppListLaunchCount,
|
| &SendAppListLaunch);
|
| RecordAppListDiscoverability(local_state_, false);
|
| + RecordAppListLastLaunch();
|
| }
|
|
|
| // static
|
| @@ -223,6 +224,19 @@ void AppListServiceImpl::RecordAppListAppLaunch() {
|
| }
|
|
|
| // static
|
| +void AppListServiceImpl::RecordAppListLastLaunch() {
|
| + if (!g_browser_process)
|
| + return; // In a unit test.
|
| +
|
| + PrefService* local_state = g_browser_process->local_state();
|
| + if (!local_state)
|
| + return; // In a unit test.
|
| +
|
| + local_state->SetInt64(prefs::kAppListLastLaunchTime,
|
| + base::Time::Now().ToInternalValue());
|
| +}
|
| +
|
| +// static
|
| void AppListServiceImpl::SendAppListStats() {
|
| if (!g_browser_process || g_browser_process->IsShuttingDown())
|
| return;
|
|
|