| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/app_list/app_list_service.h" | 5 #include "chrome/browser/ui/app_list/app_list_service.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/prefs/pref_registry_simple.h" | 8 #include "base/prefs/pref_registry_simple.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // static | 110 // static |
| 111 void AppListService::RecordAppListAppLaunch() { | 111 void AppListService::RecordAppListAppLaunch() { |
| 112 RecordDailyEventFrequency(prefs::kLastAppListAppLaunchPing, | 112 RecordDailyEventFrequency(prefs::kLastAppListAppLaunchPing, |
| 113 prefs::kAppListAppLaunchCount, | 113 prefs::kAppListAppLaunchCount, |
| 114 &SendAppListAppLaunch); | 114 &SendAppListAppLaunch); |
| 115 } | 115 } |
| 116 | 116 |
| 117 // static | 117 // static |
| 118 void AppListService::SendAppListStats() { | 118 void AppListService::SendAppListStats() { |
| 119 if (!g_browser_process || g_browser_process->IsShuttingDown()) |
| 120 return; |
| 119 SendDailyEventFrequency(prefs::kLastAppListLaunchPing, | 121 SendDailyEventFrequency(prefs::kLastAppListLaunchPing, |
| 120 prefs::kAppListLaunchCount, | 122 prefs::kAppListLaunchCount, |
| 121 &SendAppListLaunch); | 123 &SendAppListLaunch); |
| 122 SendDailyEventFrequency(prefs::kLastAppListAppLaunchPing, | 124 SendDailyEventFrequency(prefs::kLastAppListAppLaunchPing, |
| 123 prefs::kAppListAppLaunchCount, | 125 prefs::kAppListAppLaunchCount, |
| 124 &SendAppListAppLaunch); | 126 &SendAppListAppLaunch); |
| 125 } | 127 } |
| 126 | 128 |
| 127 void AppListService::ShowAppList(Profile* profile) {} | 129 void AppListService::ShowAppList(Profile* profile) {} |
| 128 | 130 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 147 | 149 |
| 148 void AppListService::OnProfileNameChanged(const base::FilePath& profile_path, | 150 void AppListService::OnProfileNameChanged(const base::FilePath& profile_path, |
| 149 const string16& profile_name) {} | 151 const string16& profile_name) {} |
| 150 | 152 |
| 151 void AppListService::OnProfileAvatarChanged( | 153 void AppListService::OnProfileAvatarChanged( |
| 152 const base::FilePath& profile_path) {} | 154 const base::FilePath& profile_path) {} |
| 153 | 155 |
| 154 AppListControllerDelegate* AppListService::CreateControllerDelegate() { | 156 AppListControllerDelegate* AppListService::CreateControllerDelegate() { |
| 155 return NULL; | 157 return NULL; |
| 156 } | 158 } |
| OLD | NEW |