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/login/login_screen.h" | 5 #include "chrome/browser/chromeos/login/login_screen.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // TODO(dpolukhin): show detailed error info. |details| string contains | 128 // TODO(dpolukhin): show detailed error info. |details| string contains |
129 // low level error info that is not localized and even is not user friendly. | 129 // low level error info that is not localized and even is not user friendly. |
130 // For now just ignore it because error_text contains all required information | 130 // For now just ignore it because error_text contains all required information |
131 // for end users, developers can see details string in Chrome logs. | 131 // for end users, developers can see details string in Chrome logs. |
132 bubble_ = MessageBubble::Show( | 132 bubble_ = MessageBubble::Show( |
133 view()->GetWidget(), | 133 view()->GetWidget(), |
134 view()->GetPasswordBounds(), | 134 view()->GetPasswordBounds(), |
135 BubbleBorder::LEFT_TOP, | 135 BubbleBorder::LEFT_TOP, |
136 ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING), | 136 ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_WARNING), |
137 error_text, | 137 error_text, |
138 l10n_util::GetString(IDS_CANT_ACCESS_ACCOUNT_BUTTON), | 138 UTF16ToWide(l10n_util::GetStringUTF16(IDS_CANT_ACCESS_ACCOUNT_BUTTON)), |
139 this); | 139 this); |
140 } | 140 } |
141 | 141 |
142 } // namespace chromeos | 142 } // namespace chromeos |
OLD | NEW |