| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_view_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" | 
| 6 | 6 | 
| 7 #include <vector> | 7 #include <vector> | 
| 8 | 8 | 
| 9 #include "base/callback.h" | 9 #include "base/callback.h" | 
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 48 #endif | 48 #endif | 
| 49 | 49 | 
| 50 namespace { | 50 namespace { | 
| 51 | 51 | 
| 52 const int kAutoLaunchDefaultTimeoutMilliSec = 50; | 52 const int kAutoLaunchDefaultTimeoutMilliSec = 50; | 
| 53 | 53 | 
| 54 #if defined(OS_WIN) | 54 #if defined(OS_WIN) | 
| 55 void CreateShortcutInWebAppDir( | 55 void CreateShortcutInWebAppDir( | 
| 56     const base::FilePath& app_data_dir, | 56     const base::FilePath& app_data_dir, | 
| 57     base::Callback<void(const base::FilePath&)> callback, | 57     base::Callback<void(const base::FilePath&)> callback, | 
| 58     const ShellIntegration::ShortcutInfo& info) { | 58     const web_app::ShortcutInfo& info) { | 
| 59   content::BrowserThread::PostTaskAndReplyWithResult( | 59   content::BrowserThread::PostTaskAndReplyWithResult( | 
| 60       content::BrowserThread::FILE, | 60       content::BrowserThread::FILE, | 
| 61       FROM_HERE, | 61       FROM_HERE, | 
| 62       base::Bind(web_app::CreateShortcutInWebAppDir, app_data_dir, info), | 62       base::Bind(web_app::CreateShortcutInWebAppDir, app_data_dir, info), | 
| 63       callback); | 63       callback); | 
| 64 } | 64 } | 
| 65 #endif | 65 #endif | 
| 66 | 66 | 
| 67 void PopulateUsers(const ProfileInfoCache& profile_info, | 67 void PopulateUsers(const ProfileInfoCache& profile_info, | 
| 68                    const base::FilePath& active_profile_path, | 68                    const base::FilePath& active_profile_path, | 
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 414 | 414 | 
| 415 void AppListViewDelegate::AddObserver( | 415 void AppListViewDelegate::AddObserver( | 
| 416     app_list::AppListViewDelegateObserver* observer) { | 416     app_list::AppListViewDelegateObserver* observer) { | 
| 417   observers_.AddObserver(observer); | 417   observers_.AddObserver(observer); | 
| 418 } | 418 } | 
| 419 | 419 | 
| 420 void AppListViewDelegate::RemoveObserver( | 420 void AppListViewDelegate::RemoveObserver( | 
| 421     app_list::AppListViewDelegateObserver* observer) { | 421     app_list::AppListViewDelegateObserver* observer) { | 
| 422   observers_.RemoveObserver(observer); | 422   observers_.RemoveObserver(observer); | 
| 423 } | 423 } | 
| OLD | NEW | 
|---|