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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm

Issue 8835003: extensions: remove install/uninstall terminology (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/infobars/infobar_tab_helper.h" 9 #include "chrome/browser/infobars/infobar_tab_helper.h"
10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
(...skipping 19 matching lines...) Expand all
30 Browser* browser = BrowserList::GetLastActiveWithProfile(profile); 30 Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
31 if (!browser) 31 if (!browser)
32 return; 32 return;
33 33
34 TabContentsWrapper* wrapper = browser->GetSelectedTabContentsWrapper(); 34 TabContentsWrapper* wrapper = browser->GetSelectedTabContentsWrapper();
35 if (!wrapper) 35 if (!wrapper)
36 return; 36 return;
37 37
38 string16 extension_name = UTF8ToUTF16(new_extension->name()); 38 string16 extension_name = UTF8ToUTF16(new_extension->name());
39 base::i18n::AdjustStringForLocaleDirection(&extension_name); 39 base::i18n::AdjustStringForLocaleDirection(&extension_name);
40 string16 msg = 40 string16 msg = l10n_util::GetStringFUTF16(
41 l10n_util::GetStringFUTF16(IDS_EXTENSION_INSTALLED_HEADING, 41 IDS_EXTENSION_INSTALLED_HEADING,
42 extension_name) + 42 extension_name,
43 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME)) +
43 UTF8ToUTF16(" ") + 44 UTF8ToUTF16(" ") +
44 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_INFO_MAC); 45 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_INFO_MAC);
45 InfoBarTabHelper* infobar_helper = wrapper->infobar_tab_helper(); 46 InfoBarTabHelper* infobar_helper = wrapper->infobar_tab_helper();
46 InfoBarDelegate* delegate = new SimpleAlertInfoBarDelegate( 47 InfoBarDelegate* delegate = new SimpleAlertInfoBarDelegate(
47 infobar_helper, new gfx::Image(new SkBitmap(icon)), msg, true); 48 infobar_helper, new gfx::Image(new SkBitmap(icon)), msg, true);
48 infobar_helper->AddInfoBar(delegate); 49 infobar_helper->AddInfoBar(delegate);
49 } 50 }
50 51
51 namespace browser { 52 namespace browser {
52 53
(...skipping 14 matching lines...) Expand all
67 icon:icon]; 68 icon:icon];
68 } else { 69 } else {
69 // If the extension is of type GENERIC, meaning it doesn't have a UI 70 // If the extension is of type GENERIC, meaning it doesn't have a UI
70 // surface to display for this window, launch infobar instead of popup 71 // surface to display for this window, launch infobar instead of popup
71 // bubble, because we have no guaranteed wrench menu button to point to. 72 // bubble, because we have no guaranteed wrench menu button to point to.
72 ShowGenericExtensionInstalledInfoBar(extension, icon, profile); 73 ShowGenericExtensionInstalledInfoBar(extension, icon, profile);
73 } 74 }
74 } 75 }
75 76
76 } // namespace browser 77 } // namespace browser
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698