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

Side by Side Diff: chrome/browser/extensions/extension_uninstall_dialog.cc

Issue 229813002: Move extensions manifest IconsHandler to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (icons-handler) Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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/extensions/extension_uninstall_dialog.h" 5 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/extensions/image_loader.h" 12 #include "chrome/browser/extensions/image_loader.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/common/extensions/manifest_handlers/icons_handler.h"
16 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
17 #include "content/public/browser/notification_source.h" 16 #include "content/public/browser/notification_source.h"
18 #include "extensions/common/constants.h" 17 #include "extensions/common/constants.h"
19 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
20 #include "extensions/common/extension_icon_set.h" 19 #include "extensions/common/extension_icon_set.h"
21 #include "extensions/common/extension_resource.h" 20 #include "extensions/common/extension_resource.h"
21 #include "extensions/common/manifest_handlers/icons_handler.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "grit/theme_resources.h" 23 #include "grit/theme_resources.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 #include "ui/base/resource/resource_bundle.h" 25 #include "ui/base/resource/resource_bundle.h"
26 #include "ui/gfx/image/image.h" 26 #include "ui/gfx/image/image.h"
27 #include "ui/gfx/image/image_skia.h" 27 #include "ui/gfx/image/image_skia.h"
28 28
29 namespace { 29 namespace {
30 30
31 // Returns pixel size under maximal scale factor for the icon whose device 31 // Returns pixel size under maximal scale factor for the icon whose device
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 std::string ExtensionUninstallDialog::GetHeadingText() { 150 std::string ExtensionUninstallDialog::GetHeadingText() {
151 if (triggering_extension_) { 151 if (triggering_extension_) {
152 return l10n_util::GetStringFUTF8( 152 return l10n_util::GetStringFUTF8(
153 IDS_EXTENSION_PROGRAMMATIC_UNINSTALL_PROMPT_HEADING, 153 IDS_EXTENSION_PROGRAMMATIC_UNINSTALL_PROMPT_HEADING,
154 base::UTF8ToUTF16(triggering_extension_->name()), 154 base::UTF8ToUTF16(triggering_extension_->name()),
155 base::UTF8ToUTF16(extension_->name())); 155 base::UTF8ToUTF16(extension_->name()));
156 } 156 }
157 return l10n_util::GetStringFUTF8(IDS_EXTENSION_UNINSTALL_PROMPT_HEADING, 157 return l10n_util::GetStringFUTF8(IDS_EXTENSION_UNINSTALL_PROMPT_HEADING,
158 base::UTF8ToUTF16(extension_->name())); 158 base::UTF8ToUTF16(extension_->name()));
159 } 159 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_storage_monitor.cc ('k') | chrome/browser/extensions/extension_web_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698