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

Unified Diff: ios/chrome/browser/physical_web/start_physical_web_discovery.mm

Issue 2566753002: Modify StartPhysicalWebDiscovery to take an ios::ChromeBrowserState param (Closed)
Patch Set: fix deps Created 4 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 | « ios/chrome/browser/physical_web/start_physical_web_discovery.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/physical_web/start_physical_web_discovery.mm
diff --git a/ios/chrome/browser/physical_web/start_physical_web_discovery.mm b/ios/chrome/browser/physical_web/start_physical_web_discovery.mm
index d6f37f0c99b770be74f884cefdff69355b3dd5f8..e1b9502f4d8cc56e01ed7dbdf06d8108e2fde45f 100644
--- a/ios/chrome/browser/physical_web/start_physical_web_discovery.mm
+++ b/ios/chrome/browser/physical_web/start_physical_web_discovery.mm
@@ -8,6 +8,7 @@
#include "components/physical_web/data_source/physical_web_data_source.h"
#include "ios/chrome/browser/application_context.h"
+#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#import "ios/chrome/browser/experimental_flags.h"
#import "ios/chrome/browser/geolocation/omnibox_geolocation_config.h"
#include "ios/chrome/browser/physical_web/physical_web_constants.h"
@@ -58,3 +59,8 @@ void StartPhysicalWebDiscovery(PrefService* pref_service, bool is_incognito) {
GetApplicationContext()->GetPhysicalWebDataSource()->StopDiscovery();
}
}
+
+void StartPhysicalWebDiscovery(PrefService* pref_service,
+ ios::ChromeBrowserState* browser_state) {
+ StartPhysicalWebDiscovery(pref_service, browser_state->IsOffTheRecord());
+}
« no previous file with comments | « ios/chrome/browser/physical_web/start_physical_web_discovery.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698