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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/threading/sequenced_worker_pool.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "chrome/browser/extensions/extension_browsertest.h" | 16 #include "chrome/browser/extensions/extension_browsertest.h" |
16 #include "chrome/browser/extensions/extension_management.h" | 17 #include "chrome/browser/extensions/extension_management.h" |
17 #include "chrome/browser/extensions/extension_service.h" | 18 #include "chrome/browser/extensions/extension_service.h" |
18 #include "chrome/browser/extensions/install_verifier.h" | 19 #include "chrome/browser/extensions/install_verifier.h" |
19 #include "chrome/browser/extensions/updater/extension_updater.h" | 20 #include "chrome/browser/extensions/updater/extension_updater.h" |
20 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
22 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
23 #include "components/policy/core/browser/browser_policy_connector.h" | 24 #include "components/policy/core/browser/browser_policy_connector.h" |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 UpdateProviderPolicy(policies); | 709 UpdateProviderPolicy(policies); |
709 extension_observer.WaitForExtensionWillBeInstalled(); | 710 extension_observer.WaitForExtensionWillBeInstalled(); |
710 | 711 |
711 ASSERT_EQ(size_before + 1, registry->enabled_extensions().size()); | 712 ASSERT_EQ(size_before + 1, registry->enabled_extensions().size()); |
712 extension = service->GetExtensionById(kExtensionId, false); | 713 extension = service->GetExtensionById(kExtensionId, false); |
713 ASSERT_TRUE(extension); | 714 ASSERT_TRUE(extension); |
714 EXPECT_EQ(Manifest::EXTERNAL_POLICY_DOWNLOAD, extension->location()); | 715 EXPECT_EQ(Manifest::EXTERNAL_POLICY_DOWNLOAD, extension->location()); |
715 EXPECT_TRUE(service->IsExtensionEnabled(kExtensionId)); | 716 EXPECT_TRUE(service->IsExtensionEnabled(kExtensionId)); |
716 EXPECT_TRUE(registry->disabled_extensions().is_empty()); | 717 EXPECT_TRUE(registry->disabled_extensions().is_empty()); |
717 } | 718 } |
OLD | NEW |