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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_impl.h

Issue 1016503006: Don't warmup the app list if it hasn't been used in the past 28 days. [Win] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_da_check_save
Patch Set: fix_unittests Created 5 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
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 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 AppListServiceImpl(const base::CommandLine& command_line, 38 AppListServiceImpl(const base::CommandLine& command_line,
39 PrefService* local_state, 39 PrefService* local_state,
40 scoped_ptr<ProfileStore> profile_store); 40 scoped_ptr<ProfileStore> profile_store);
41 41
42 // Lazily create the Chrome AppListViewDelegate and ensure it is set to the 42 // Lazily create the Chrome AppListViewDelegate and ensure it is set to the
43 // given |profile|. 43 // given |profile|.
44 AppListViewDelegate* GetViewDelegate(Profile* profile); 44 AppListViewDelegate* GetViewDelegate(Profile* profile);
45 45
46 void RecordAppListLaunch(); 46 void RecordAppListLaunch();
47 static void RecordAppListAppLaunch(); 47 static void RecordAppListAppLaunch();
48 static void RecordAppListLastLaunch();
48 49
49 // AppListService overrides: 50 // AppListService overrides:
50 void SetAppListNextPaintCallback(void (*callback)()) override; 51 void SetAppListNextPaintCallback(void (*callback)()) override;
51 void Init(Profile* initial_profile) override; 52 void Init(Profile* initial_profile) override;
52 base::FilePath GetProfilePath(const base::FilePath& user_data_dir) override; 53 base::FilePath GetProfilePath(const base::FilePath& user_data_dir) override;
53 void SetProfilePath(const base::FilePath& profile_path) override; 54 void SetProfilePath(const base::FilePath& profile_path) override;
54 void Show() override; 55 void Show() override;
55 void ShowForVoiceSearch( 56 void ShowForVoiceSearch(
56 Profile* profile, 57 Profile* profile,
57 const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble) 58 const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 PrefService* local_state_; 103 PrefService* local_state_;
103 scoped_ptr<ProfileLoader> profile_loader_; 104 scoped_ptr<ProfileLoader> profile_loader_;
104 scoped_ptr<AppListViewDelegate> view_delegate_; 105 scoped_ptr<AppListViewDelegate> view_delegate_;
105 106
106 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; 107 base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
107 108
108 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); 109 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl);
109 }; 110 };
110 111
111 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 112 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service.cc ('k') | chrome/browser/ui/app_list/app_list_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698