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

Unified Diff: chrome/browser/ui/app_list/search/common/webservice_search_provider.h

Issue 49353006: Add caching for apps list search results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/search/common/webservice_search_provider.h
diff --git a/chrome/browser/ui/app_list/search/common/webservice_search_provider.h b/chrome/browser/ui/app_list/search/common/webservice_search_provider.h
index 74ac94ff8a55e7748b52736c8d84e02939e38804..5aa45db6141d8cf3463ff27af7ae50d4c495ae6d 100644
--- a/chrome/browser/ui/app_list/search/common/webservice_search_provider.h
+++ b/chrome/browser/ui/app_list/search/common/webservice_search_provider.h
@@ -16,6 +16,8 @@ class Profile;
namespace app_list {
+class WebserviceCache;
+
// Helper class for webservice based searches.
class WebserviceSearchProvider : public SearchProvider {
public:
@@ -32,10 +34,7 @@ class WebserviceSearchProvider : public SearchProvider {
protected:
Profile* profile_;
-
- // The cache of the search result which will be valid only in a single
- // input session.
- WebserviceCache cache_;
+ WebserviceCache* cache_; // BrowserContextKeyedService, not owned.
private:
bool IsSensitiveInput(const string16& query);

Powered by Google App Engine
This is Rietveld 408576698