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

Unified Diff: chrome/browser/chromeos/arc/arc_support_host.cc

Issue 2765523002: arc: Add explicit error message in case network cannot be setup. (Closed)
Patch Set: sort enums Created 3 years, 9 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 | « chrome/browser/chromeos/arc/arc_support_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_support_host.cc
diff --git a/chrome/browser/chromeos/arc/arc_support_host.cc b/chrome/browser/chromeos/arc/arc_support_host.cc
index 5ce98ef288893a8496e196911dd76aeb9bd0462e..e1df3fbaf10fd3764596e8d1e1f8ee2160cf9e9f 100644
--- a/chrome/browser/chromeos/arc/arc_support_host.cc
+++ b/chrome/browser/chromeos/arc/arc_support_host.cc
@@ -140,6 +140,8 @@ std::ostream& operator<<(std::ostream& os, ArcSupportHost::Error error) {
return os << "SERVER_COMMUNICATION_ERROR";
case ArcSupportHost::Error::ANDROID_MANAGEMENT_REQUIRED_ERROR:
return os << "ANDROID_MANAGEMENT_REQUIRED_ERROR";
+ case ArcSupportHost::Error::NETWORK_UNAVAILABLE_ERROR:
+ return os << "NETWORK_UNAVAILABLE_ERROR";
}
// Some compiler reports an error even if all values of an enum-class are
@@ -289,6 +291,9 @@ void ArcSupportHost::ShowError(Error error, bool should_show_send_feedback) {
case Error::ANDROID_MANAGEMENT_REQUIRED_ERROR:
message_id = IDS_ARC_ANDROID_MANAGEMENT_REQUIRED_ERROR;
break;
+ case Error::NETWORK_UNAVAILABLE_ERROR:
+ message_id = IDS_ARC_NETWORK_UNAVAILABLE_ERROR;
+ break;
}
message.SetString(kErrorMessage, l10n_util::GetStringUTF16(message_id));
message.SetBoolean(kShouldShowSendFeedback, should_show_send_feedback);
« no previous file with comments | « chrome/browser/chromeos/arc/arc_support_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698