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

Unified Diff: chrome/browser/ui/app_list/search/search_controller_factory.cc

Issue 789623003: Use base::Clock instead of base::Time::Now in AppSearchProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@now_source
Patch Set: rebase Created 6 years 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/search_controller_factory.cc
diff --git a/chrome/browser/ui/app_list/search/search_controller_factory.cc b/chrome/browser/ui/app_list/search/search_controller_factory.cc
index c9fa326c42f51d6308719b52ccc5f583eeb0c574..fd37f04dec8cd6d694725b35e4009263f127ed9e 100644
--- a/chrome/browser/ui/app_list/search/search_controller_factory.cc
+++ b/chrome/browser/ui/app_list/search/search_controller_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/app_list/search/search_controller_factory.h"
#include "base/command_line.h"
+#include "base/time/default_clock.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/app_list/search/app_search_provider.h"
#include "chrome/browser/ui/app_list/search/history_factory.h"
@@ -26,8 +27,9 @@ scoped_ptr<SearchController> CreateSearchController(
search_box, results, HistoryFactory::GetForBrowserContext(profile)));
controller->AddProvider(Mixer::MAIN_GROUP,
- scoped_ptr<SearchProvider>(
- new AppSearchProvider(profile, list_controller)));
+ scoped_ptr<SearchProvider>(new AppSearchProvider(
+ profile, list_controller,
+ make_scoped_ptr(new base::DefaultClock()))));
controller->AddProvider(Mixer::OMNIBOX_GROUP,
scoped_ptr<SearchProvider>(
new OmniboxProvider(profile, list_controller)));

Powered by Google App Engine
This is Rietveld 408576698