OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/extensions/extension_installed_bubble.h" | 5 #include "chrome/browser/ui/views/extensions/extension_installed_bubble.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 } | 201 } |
202 | 202 |
203 if (flavors_ & SHOW_KEYBINDING) { | 203 if (flavors_ & SHOW_KEYBINDING) { |
204 manage_shortcut_ = new views::Link( | 204 manage_shortcut_ = new views::Link( |
205 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_SHORTCUTS)); | 205 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_SHORTCUTS)); |
206 manage_shortcut_->set_listener(this); | 206 manage_shortcut_->set_listener(this); |
207 AddChildView(manage_shortcut_); | 207 AddChildView(manage_shortcut_); |
208 } | 208 } |
209 | 209 |
210 if (flavors_ & HOW_TO_MANAGE) { | 210 if (flavors_ & HOW_TO_MANAGE) { |
211 manage_ = new views::Label( | 211 manage_ = new views::Label(l10n_util::GetStringUTF16( |
212 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_INFO)); | 212 #if defined(OS_CHROMEOS) |
| 213 IDS_EXTENSION_INSTALLED_MANAGE_INFO_CHROMEOS)); |
| 214 #else |
| 215 IDS_EXTENSION_INSTALLED_MANAGE_INFO)); |
| 216 #endif |
213 manage_->SetFont(font); | 217 manage_->SetFont(font); |
214 manage_->SetMultiLine(true); | 218 manage_->SetMultiLine(true); |
215 manage_->SetHorizontalAlignment(gfx::ALIGN_LEFT); | 219 manage_->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
216 AddChildView(manage_); | 220 AddChildView(manage_); |
217 } | 221 } |
218 | 222 |
219 if (flavors_ & SIGN_IN_PROMO) { | 223 if (flavors_ & SIGN_IN_PROMO) { |
220 signin_promo_text_ = | 224 signin_promo_text_ = |
221 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_SIGNIN_PROMO); | 225 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_SIGNIN_PROMO); |
222 | 226 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 | 663 |
660 void ExtensionInstalledBubble::WindowClosing() { | 664 void ExtensionInstalledBubble::WindowClosing() { |
661 if (extension_ && type_ == PAGE_ACTION) { | 665 if (extension_ && type_ == PAGE_ACTION) { |
662 BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser_); | 666 BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser_); |
663 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( | 667 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( |
664 extensions::ExtensionActionManager::Get(browser_->profile())-> | 668 extensions::ExtensionActionManager::Get(browser_->profile())-> |
665 GetPageAction(*extension_), | 669 GetPageAction(*extension_), |
666 false); // preview_enabled | 670 false); // preview_enabled |
667 } | 671 } |
668 } | 672 } |
OLD | NEW |