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

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
« no previous file with comments | « chrome/browser/ui/app_list/search/app_search_provider_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98a8cc2b90a6de5a02480e069006ed1d9984b1d2..9e8523454aadebe19d18cd52a998ed3420575cee 100644
--- a/chrome/browser/ui/app_list/search/search_controller_factory.cc
+++ b/chrome/browser/ui/app_list/search/search_controller_factory.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.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"
@@ -45,8 +46,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)));
« no previous file with comments | « chrome/browser/ui/app_list/search/app_search_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698