| 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_impl.h" | 5 #include "chrome/browser/ui/app_list/app_list_service_impl.h" |
| 6 | 6 |
| 7 #include "apps/pref_names.h" | 7 #include "apps/pref_names.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 profile_load_sequence_id_(0), | 110 profile_load_sequence_id_(0), |
| 111 pending_profile_loads_(0), | 111 pending_profile_loads_(0), |
| 112 weak_factory_(this), | 112 weak_factory_(this), |
| 113 profile_loader_(g_browser_process->profile_manager()) { | 113 profile_loader_(g_browser_process->profile_manager()) { |
| 114 ProfileManager* profile_manager = g_browser_process->profile_manager(); | 114 ProfileManager* profile_manager = g_browser_process->profile_manager(); |
| 115 profile_manager->GetProfileInfoCache().AddObserver(this); | 115 profile_manager->GetProfileInfoCache().AddObserver(this); |
| 116 } | 116 } |
| 117 | 117 |
| 118 AppListServiceImpl::~AppListServiceImpl() {} | 118 AppListServiceImpl::~AppListServiceImpl() {} |
| 119 | 119 |
| 120 void AppListServiceImpl::SetAppListNextPaintCallback( |
| 121 const base::Closure& callback) {} |
| 122 |
| 120 void AppListServiceImpl::HandleFirstRun() {} | 123 void AppListServiceImpl::HandleFirstRun() {} |
| 121 | 124 |
| 122 void AppListServiceImpl::Init(Profile* initial_profile) {} | 125 void AppListServiceImpl::Init(Profile* initial_profile) {} |
| 123 | 126 |
| 124 base::FilePath AppListServiceImpl::GetProfilePath( | 127 base::FilePath AppListServiceImpl::GetProfilePath( |
| 125 const base::FilePath& user_data_dir) { | 128 const base::FilePath& user_data_dir) { |
| 126 PrefService* local_state = g_browser_process->local_state(); | 129 PrefService* local_state = g_browser_process->local_state(); |
| 127 DCHECK(local_state); | 130 DCHECK(local_state); |
| 128 | 131 |
| 129 std::string app_list_profile; | 132 std::string app_list_profile; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 profile_loader_.InvalidatePendingProfileLoads(); | 201 profile_loader_.InvalidatePendingProfileLoads(); |
| 199 } | 202 } |
| 200 | 203 |
| 201 void AppListServiceImpl::HandleCommandLineFlags(Profile* initial_profile) { | 204 void AppListServiceImpl::HandleCommandLineFlags(Profile* initial_profile) { |
| 202 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAppList)) | 205 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAppList)) |
| 203 EnableAppList(initial_profile); | 206 EnableAppList(initial_profile); |
| 204 | 207 |
| 205 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableAppList)) | 208 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableAppList)) |
| 206 SetAppListEnabledPreference(false); | 209 SetAppListEnabledPreference(false); |
| 207 } | 210 } |
| OLD | NEW |