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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 } // namespace | 61 } // namespace |
62 | 62 |
63 // static | 63 // static |
64 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) { | 64 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) { |
65 registry->RegisterInt64Pref(prefs::kLastAppListLaunchPing, 0); | 65 registry->RegisterInt64Pref(prefs::kLastAppListLaunchPing, 0); |
66 registry->RegisterIntegerPref(prefs::kAppListLaunchCount, 0); | 66 registry->RegisterIntegerPref(prefs::kAppListLaunchCount, 0); |
67 registry->RegisterInt64Pref(prefs::kLastAppListAppLaunchPing, 0); | 67 registry->RegisterInt64Pref(prefs::kLastAppListAppLaunchPing, 0); |
68 registry->RegisterIntegerPref(prefs::kAppListAppLaunchCount, 0); | 68 registry->RegisterIntegerPref(prefs::kAppListAppLaunchCount, 0); |
69 registry->RegisterStringPref(prefs::kAppListProfile, ""); | 69 registry->RegisterStringPref(prefs::kAppListProfile, std::string()); |
70 #if defined(OS_WIN) | 70 #if defined(OS_WIN) |
71 registry->RegisterBooleanPref(prefs::kRestartWithAppList, false); | 71 registry->RegisterBooleanPref(prefs::kRestartWithAppList, false); |
72 #endif | 72 #endif |
73 } | 73 } |
74 | 74 |
75 void AppListService::Init(Profile* initial_profile) {} | 75 void AppListService::Init(Profile* initial_profile) {} |
76 | 76 |
77 base::FilePath AppListService::GetAppListProfilePath( | 77 base::FilePath AppListService::GetAppListProfilePath( |
78 const base::FilePath& user_data_dir) { | 78 const base::FilePath& user_data_dir) { |
79 PrefService* local_state = g_browser_process->local_state(); | 79 PrefService* local_state = g_browser_process->local_state(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 void AppListService::OnProfileNameChanged(const base::FilePath& profile_path, | 142 void AppListService::OnProfileNameChanged(const base::FilePath& profile_path, |
143 const string16& profile_name) {} | 143 const string16& profile_name) {} |
144 | 144 |
145 void AppListService::OnProfileAvatarChanged( | 145 void AppListService::OnProfileAvatarChanged( |
146 const base::FilePath& profile_path) {} | 146 const base::FilePath& profile_path) {} |
147 | 147 |
148 AppListControllerDelegate* AppListService::CreateControllerDelegate() { | 148 AppListControllerDelegate* AppListService::CreateControllerDelegate() { |
149 return NULL; | 149 return NULL; |
150 } | 150 } |
OLD | NEW |