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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/download/download_crx_util.h" | 8 #include "chrome/browser/download/download_crx_util.h" |
9 #include "chrome/browser/extensions/browser_action_test_util.h" | 9 #include "chrome/browser/extensions/browser_action_test_util.h" |
10 #include "chrome/browser/extensions/crx_installer.h" | 10 #include "chrome/browser/extensions/crx_installer.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "extensions/common/extension.h" | 30 #include "extensions/common/extension.h" |
31 #include "extensions/common/feature_switch.h" | 31 #include "extensions/common/feature_switch.h" |
32 #include "extensions/common/file_util.h" | 32 #include "extensions/common/file_util.h" |
33 #include "extensions/common/permissions/permission_set.h" | 33 #include "extensions/common/permissions/permission_set.h" |
34 #include "extensions/common/switches.h" | 34 #include "extensions/common/switches.h" |
35 #include "grit/generated_resources.h" | 35 #include "grit/generated_resources.h" |
36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
37 | 37 |
38 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
39 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" | 39 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" |
40 #include "chrome/browser/chromeos/login/users/user_manager.h" | 40 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
41 #include "chrome/browser/extensions/extension_assets_manager_chromeos.h" | 41 #include "chrome/browser/extensions/extension_assets_manager_chromeos.h" |
42 #include "chromeos/chromeos_switches.h" | 42 #include "chromeos/chromeos_switches.h" |
43 #endif | 43 #endif |
44 | 44 |
45 class SkBitmap; | 45 class SkBitmap; |
46 | 46 |
47 namespace extensions { | 47 namespace extensions { |
48 | 48 |
49 namespace { | 49 namespace { |
50 | 50 |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 ManagementPolicyMock policy; | 572 ManagementPolicyMock policy; |
573 extensions::ExtensionSystem::Get(profile()) | 573 extensions::ExtensionSystem::Get(profile()) |
574 ->management_policy() | 574 ->management_policy() |
575 ->RegisterProvider(&policy); | 575 ->RegisterProvider(&policy); |
576 | 576 |
577 base::FilePath crx_path = test_data_dir_.AppendASCII("crx_installer/v1.crx"); | 577 base::FilePath crx_path = test_data_dir_.AppendASCII("crx_installer/v1.crx"); |
578 EXPECT_FALSE(InstallExtension(crx_path, 0)); | 578 EXPECT_FALSE(InstallExtension(crx_path, 0)); |
579 } | 579 } |
580 | 580 |
581 } // namespace extensions | 581 } // namespace extensions |
OLD | NEW |