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

Unified Diff: ui/chromeos/network/network_connect.h

Issue 1272003002: Allow networkingPrivate to request configure UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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: ui/chromeos/network/network_connect.h
diff --git a/ui/chromeos/network/network_connect.h b/ui/chromeos/network/network_connect.h
index 29434fb5e049b27fec4127e4aa6a51115b49101b..3d19a70689f25a4e69bb7b27b1cb036157c036bc 100644
--- a/ui/chromeos/network/network_connect.h
+++ b/ui/chromeos/network/network_connect.h
@@ -63,6 +63,12 @@ class UI_CHROMEOS_EXPORT NetworkConnect {
// Requests a network connection and handles any errors and notifications.
virtual void ConnectToNetwork(const std::string& service_path) = 0;
+ // Handles connect request failures for |service_path| based on |error_name|.
+ // Shows the configuration UI and returns true if the network might not be
+ // configured, otherwise does nothing and returns false.
+ virtual bool HandleConnectFailed(const std::string& service_path,
pneubeck (no reviews) 2015/08/06 09:52:01 if possible, please consider giving this function
stevenjb 2015/08/07 17:39:37 Renamed MaybeShowConfigureUI.
+ const std::string& error_name) = 0;
+
// Enables or disables a network technology. If |technology| refers to
// cellular and the device cannot be enabled due to a SIM lock, this function
// will launch the SIM unlock dialog.

Powered by Google App Engine
This is Rietveld 408576698