| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_PHYSICAL_WEB_START_PHYSICAL_WEB_DISCOVERY_H_ | 5 #ifndef IOS_CHROME_BROWSER_PHYSICAL_WEB_START_PHYSICAL_WEB_DISCOVERY_H_ |
| 6 #define IOS_CHROME_BROWSER_PHYSICAL_WEB_START_PHYSICAL_WEB_DISCOVERY_H_ | 6 #define IOS_CHROME_BROWSER_PHYSICAL_WEB_START_PHYSICAL_WEB_DISCOVERY_H_ |
| 7 | 7 |
| 8 #include "components/prefs/pref_service.h" | 8 #include "components/prefs/pref_service.h" |
| 9 | 9 |
| 10 namespace ios { |
| 11 class ChromeBrowserState; |
| 12 } |
| 13 |
| 10 // Checks the environment and starts Physical Web discovery if the required | 14 // Checks the environment and starts Physical Web discovery if the required |
| 11 // conditions are met. | 15 // conditions are met. |
| 16 // Deprecated, use the version below that takes an ios::ChromeBrowserState. |
| 17 // TODO(mattreynolds): remove once downstream users have been switched to the |
| 18 // new method. |
| 12 void StartPhysicalWebDiscovery(PrefService* pref_service, bool is_incognito); | 19 void StartPhysicalWebDiscovery(PrefService* pref_service, bool is_incognito); |
| 13 | 20 |
| 21 // Checks the environment and starts Physical Web discovery if the required |
| 22 // conditions are met. |
| 23 void StartPhysicalWebDiscovery(PrefService* pref_service, |
| 24 ios::ChromeBrowserState* browser_state); |
| 25 |
| 14 #endif // IOS_CHROME_BROWSER_PHYSICAL_WEB_START_PHYSICAL_WEB_DISCOVERY_H_ | 26 #endif // IOS_CHROME_BROWSER_PHYSICAL_WEB_START_PHYSICAL_WEB_DISCOVERY_H_ |
| OLD | NEW |