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

Unified Diff: chromeos/components/tether/fake_tether_host_fetcher.h

Issue 2975483002: [CrOS Tether] Disconnect cleanly from active Tether networks when the user logs out or the Tether c… (Closed)
Patch Set: hansberry@ comment. Created 3 years, 5 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 | « chromeos/components/tether/BUILD.gn ('k') | chromeos/components/tether/initializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/components/tether/fake_tether_host_fetcher.h
diff --git a/chromeos/components/tether/fake_tether_host_fetcher.h b/chromeos/components/tether/fake_tether_host_fetcher.h
index a75c9905bf09f9e3402819347f5b4eeb7b560330..7a6e93e1caf7fe81b9f0426206a992f75846fade 100644
--- a/chromeos/components/tether/fake_tether_host_fetcher.h
+++ b/chromeos/components/tether/fake_tether_host_fetcher.h
@@ -20,12 +20,17 @@ class FakeTetherHostFetcher : public TetherHostFetcher {
public:
FakeTetherHostFetcher(std::vector<cryptauth::RemoteDevice> tether_hosts,
bool synchronously_reply_with_results);
- FakeTetherHostFetcher(bool synchronously_reply_with_results);
+ explicit FakeTetherHostFetcher(bool synchronously_reply_with_results);
~FakeTetherHostFetcher() override;
+ void set_synchronously_reply_with_results(
+ bool synchronously_reply_with_results) {
+ synchronously_reply_with_results_ = synchronously_reply_with_results;
+ }
+
void SetTetherHosts(const std::vector<cryptauth::RemoteDevice> tether_hosts);
- // If |sychronously_reply_with_results| is false, calling this method will
+ // If |synchronously_reply_with_results_| is false, calling this method will
// actually invoke the callbacks.
void InvokePendingCallbacks();
« no previous file with comments | « chromeos/components/tether/BUILD.gn ('k') | chromeos/components/tether/initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698