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

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

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.cc
diff --git a/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc b/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc
index f418495f87850d047fd35feb4f55ab56a1363b4c..2b778744226b74fbff29c2124af6bf8f56344c5d 100644
--- a/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc
+++ b/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc
@@ -8,7 +8,10 @@
#include "base/callback.h"
#include "base/strings/string_util.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/search.h"
+#include "chrome/browser/ui/app_list/search/common/webservice_cache.h"
+#include "chrome/browser/ui/app_list/search/common/webservice_cache_factory.h"
#include "chrome/common/url_constants.h"
#include "url/gurl.h"
@@ -22,7 +25,9 @@ const size_t kMinimumQueryLength = 3u;
} // namespace
WebserviceSearchProvider::WebserviceSearchProvider(Profile* profile)
- : profile_(profile), use_throttling_(true) {}
+ : profile_(profile),
+ cache_(WebserviceCacheFactory::GetForBrowserContext(profile)),
+ use_throttling_(true) {}
WebserviceSearchProvider::~WebserviceSearchProvider() {}

Powered by Google App Engine
This is Rietveld 408576698