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

Unified Diff: ios/chrome/browser/application_context_impl.cc

Issue 2113473002: Add a Physical Web data source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 4 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: ios/chrome/browser/application_context_impl.cc
diff --git a/ios/chrome/browser/application_context_impl.cc b/ios/chrome/browser/application_context_impl.cc
index 704a6b1fba3a90090b151d61663a392e23125405..92b53107dca3cd33543c0a2237e7c9c1f259504c 100644
--- a/ios/chrome/browser/application_context_impl.cc
+++ b/ios/chrome/browser/application_context_impl.cc
@@ -28,6 +28,7 @@
#include "components/metrics_services_manager/metrics_services_manager.h"
#include "components/net_log/chrome_net_log.h"
#include "components/network_time/network_time_tracker.h"
+#include "components/physical_web/data_source/physical_web_data_source.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/translate/core/browser/translate_download_manager.h"
@@ -43,6 +44,7 @@
#include "ios/chrome/browser/ios_chrome_io_thread.h"
#include "ios/chrome/browser/metrics/ios_chrome_metrics_services_manager_client.h"
#include "ios/chrome/browser/net/crl_set_fetcher.h"
+#include "ios/chrome/browser/physical_web/create_physical_web_data_source.h"
#include "ios/chrome/browser/pref_names.h"
#include "ios/chrome/browser/prefs/browser_prefs.h"
#include "ios/chrome/browser/prefs/ios_chrome_pref_service_factory.h"
@@ -296,6 +298,15 @@ CRLSetFetcher* ApplicationContextImpl::GetCRLSetFetcher() {
return crl_set_fetcher_.get();
}
+PhysicalWebDataSource* ApplicationContextImpl::GetPhysicalWebDataSource() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ if (!physical_web_data_source_) {
+ physical_web_data_source_ = CreateIOSChromePhysicalWebDataSource();
+ DCHECK(physical_web_data_source_);
+ }
+ return physical_web_data_source_.get();
+}
+
void ApplicationContextImpl::SetApplicationLocale(const std::string& locale) {
DCHECK(thread_checker_.CalledOnValidThread());
application_locale_ = locale;
« no previous file with comments | « ios/chrome/browser/application_context_impl.h ('k') | ios/chrome/browser/physical_web/create_physical_web_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698