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

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

Issue 231673005: Move ShortcutInfo, ShortcutLocations from ShellIntegration to web_app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 8 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac.mm ('k') | chrome/browser/ui/views/app_list/win/app_list_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698