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

Side by Side Diff: chrome/browser/chromeos/network_message_observer.cc

Issue 3412033: Make feedback failure notification non sticky (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: " Created 10 years, 2 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/low_battery_observer.cc ('k') | chrome/browser/chromeos/notifications/system_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698