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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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) 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_install_ui.h" 5 #include "chrome/browser/extensions/extension_install_ui.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "ui/base/l10n/l10n_util.h" 44 #include "ui/base/l10n/l10n_util.h"
45 #include "ui/base/resource/resource_bundle.h" 45 #include "ui/base/resource/resource_bundle.h"
46 #include "ui/gfx/image/image.h" 46 #include "ui/gfx/image/image.h"
47 47
48 #if defined(USE_ASH) 48 #if defined(USE_ASH)
49 #include "ash/shell.h" 49 #include "ash/shell.h"
50 #endif 50 #endif
51 51
52 using content::WebContents; 52 using content::WebContents;
53 using extensions::BundleInstaller; 53 using extensions::BundleInstaller;
54 using extensions::Extension;
54 55
55 static const int kTitleIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = { 56 static const int kTitleIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = {
56 0, // The regular install prompt depends on what's being installed. 57 0, // The regular install prompt depends on what's being installed.
57 IDS_EXTENSION_INLINE_INSTALL_PROMPT_TITLE, 58 IDS_EXTENSION_INLINE_INSTALL_PROMPT_TITLE,
58 IDS_EXTENSION_INSTALL_PROMPT_TITLE, 59 IDS_EXTENSION_INSTALL_PROMPT_TITLE,
59 IDS_EXTENSION_RE_ENABLE_PROMPT_TITLE, 60 IDS_EXTENSION_RE_ENABLE_PROMPT_TITLE,
60 IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE 61 IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE
61 }; 62 };
62 static const int kHeadingIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = { 63 static const int kHeadingIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = {
63 IDS_EXTENSION_INSTALL_PROMPT_HEADING, 64 IDS_EXTENSION_INSTALL_PROMPT_HEADING,
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 bool previous_using_native_theme) { 542 bool previous_using_native_theme) {
542 Profile* profile = tab_contents->profile(); 543 Profile* profile = tab_contents->profile();
543 return new ThemeInstalledInfoBarDelegate( 544 return new ThemeInstalledInfoBarDelegate(
544 tab_contents->infobar_tab_helper(), 545 tab_contents->infobar_tab_helper(),
545 profile->GetExtensionService(), 546 profile->GetExtensionService(),
546 ThemeServiceFactory::GetForProfile(profile), 547 ThemeServiceFactory::GetForProfile(profile),
547 new_theme, 548 new_theme,
548 previous_theme_id, 549 previous_theme_id,
549 previous_using_native_theme); 550 previous_using_native_theme);
550 } 551 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_ui.h ('k') | chrome/browser/extensions/extension_install_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698