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

Unified Diff: chrome/browser/history/chrome_history_client_factory.cc

Issue 631253002: Refactor sending NOTIFICATION_HISTORY_URL_VISITED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests on Android Created 6 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
« no previous file with comments | « chrome/browser/history/chrome_history_client_factory.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/chrome_history_client_factory.cc
diff --git a/chrome/browser/history/chrome_history_client_factory.cc b/chrome/browser/history/chrome_history_client_factory.cc
index f612a18dd4b9735f978dec634d4ad2dc4154c27b..10c8618e91d43199f6dfdbdad3bdc4c4afafadbb 100644
--- a/chrome/browser/history/chrome_history_client_factory.cc
+++ b/chrome/browser/history/chrome_history_client_factory.cc
@@ -19,6 +19,13 @@ ChromeHistoryClient* ChromeHistoryClientFactory::GetForProfile(
}
// static
+ChromeHistoryClient* ChromeHistoryClientFactory::GetForProfileWithoutCreating(
+ Profile* profile) {
+ return static_cast<ChromeHistoryClient*>(
+ GetInstance()->GetServiceForBrowserContext(profile, false));
+}
+
+// static
ChromeHistoryClientFactory* ChromeHistoryClientFactory::GetInstance() {
return Singleton<ChromeHistoryClientFactory>::get();
}
« no previous file with comments | « chrome/browser/history/chrome_history_client_factory.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698