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

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

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 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_install_prompt.h" 5 #include "chrome/browser/extensions/extension_install_prompt.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 14 matching lines...) Expand all
25 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
26 #include "chrome/common/extensions/extension.h" 26 #include "chrome/common/extensions/extension.h"
27 #include "chrome/common/extensions/extension_icon_set.h" 27 #include "chrome/common/extensions/extension_icon_set.h"
28 #include "chrome/common/extensions/extension_manifest_constants.h" 28 #include "chrome/common/extensions/extension_manifest_constants.h"
29 #include "chrome/common/extensions/extension_resource.h" 29 #include "chrome/common/extensions/extension_resource.h"
30 #include "chrome/common/extensions/extension_switch_utils.h" 30 #include "chrome/common/extensions/extension_switch_utils.h"
31 #include "chrome/common/extensions/url_pattern.h" 31 #include "chrome/common/extensions/url_pattern.h"
32 #include "content/public/browser/page_navigator.h" 32 #include "content/public/browser/page_navigator.h"
33 #include "grit/chromium_strings.h" 33 #include "grit/chromium_strings.h"
34 #include "grit/generated_resources.h" 34 #include "grit/generated_resources.h"
35 #include "grit/theme_resources_standard.h" 35 #include "grit/theme_resources.h"
36 #include "ui/base/l10n/l10n_util.h" 36 #include "ui/base/l10n/l10n_util.h"
37 #include "ui/base/resource/resource_bundle.h" 37 #include "ui/base/resource/resource_bundle.h"
38 #include "ui/gfx/image/image.h" 38 #include "ui/gfx/image/image.h"
39 39
40 using extensions::BundleInstaller; 40 using extensions::BundleInstaller;
41 using extensions::Extension; 41 using extensions::Extension;
42 using extensions::PermissionSet; 42 using extensions::PermissionSet;
43 43
44 static const int kTitleIds[ExtensionInstallPrompt::NUM_PROMPT_TYPES] = { 44 static const int kTitleIds[ExtensionInstallPrompt::NUM_PROMPT_TYPES] = {
45 0, // The regular install prompt depends on what's being installed. 45 0, // The regular install prompt depends on what's being installed.
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 Browser* browser) { 502 Browser* browser) {
503 // |browser| can be NULL in unit tests. 503 // |browser| can be NULL in unit tests.
504 if (!browser) 504 if (!browser)
505 return new ExtensionInstallPrompt(NULL, NULL, NULL); 505 return new ExtensionInstallPrompt(NULL, NULL, NULL);
506 gfx::NativeWindow parent = 506 gfx::NativeWindow parent =
507 browser->window() ? browser->window()->GetNativeWindow() : NULL; 507 browser->window() ? browser->window()->GetNativeWindow() : NULL;
508 return new ExtensionInstallPrompt(parent, browser, browser->profile()); 508 return new ExtensionInstallPrompt(parent, browser, browser->profile());
509 } 509 }
510 510
511 } // namespace chrome 511 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_icon_manager.cc ('k') | chrome/browser/extensions/extension_uninstall_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698