OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/chromeos/network_message_observer.h" | 5 #include "chrome/browser/chromeos/network_message_observer.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
10 #include "chrome/browser/browser_window.h" | 10 #include "chrome/browser/browser_window.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 cellular_networks_[cellular.service_path()] = cellular; | 111 cellular_networks_[cellular.service_path()] = cellular; |
112 } | 112 } |
113 | 113 |
114 // Show notification if necessary. | 114 // Show notification if necessary. |
115 if (!new_failed_network.empty()) { | 115 if (!new_failed_network.empty()) { |
116 // Hide if already shown to force show it in case user has closed it. | 116 // Hide if already shown to force show it in case user has closed it. |
117 if (notification_.visible()) | 117 if (notification_.visible()) |
118 notification_.Hide(); | 118 notification_.Hide(); |
119 notification_.Show(l10n_util::GetStringFUTF16( | 119 notification_.Show(l10n_util::GetStringFUTF16( |
120 IDS_NETWORK_CONNECTION_ERROR_MESSAGE, | 120 IDS_NETWORK_CONNECTION_ERROR_MESSAGE, |
121 ASCIIToUTF16(new_failed_network)), false); | 121 ASCIIToUTF16(new_failed_network)), false, true); |
122 } | 122 } |
123 | 123 |
124 // Show login box if necessary. | 124 // Show login box if necessary. |
125 if (view && initialized_) | 125 if (view && initialized_) |
126 CreateModalPopup(view); | 126 CreateModalPopup(view); |
127 } | 127 } |
128 | 128 |
129 } // namespace chromeos | 129 } // namespace chromeos |
OLD | NEW |