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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service.cc

Issue 14587005: Make AppListController::InitView() act on the right profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/app_list/app_list_controller_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/app_list/app_list_controller_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698