| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/install_verifier.h" | 5 #include "chrome/browser/extensions/install_verifier.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/prefs/pref_service.h" | |
| 17 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 18 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
| 19 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 20 #include "chrome/browser/extensions/extension_management.h" | 19 #include "chrome/browser/extensions/extension_management.h" |
| 21 #include "chrome/browser/extensions/extension_service.h" | 20 #include "chrome/browser/extensions/extension_service.h" |
| 22 #include "chrome/browser/extensions/install_signer.h" | 21 #include "chrome/browser/extensions/install_signer.h" |
| 23 #include "chrome/browser/extensions/install_verifier_factory.h" | 22 #include "chrome/browser/extensions/install_verifier_factory.h" |
| 24 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 25 #include "chrome/grit/generated_resources.h" | 24 #include "chrome/grit/generated_resources.h" |
| 25 #include "components/prefs/pref_service.h" |
| 26 #include "content/public/browser/browser_context.h" | 26 #include "content/public/browser/browser_context.h" |
| 27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
| 28 #include "extensions/browser/extension_prefs.h" | 28 #include "extensions/browser/extension_prefs.h" |
| 29 #include "extensions/browser/extension_registry.h" | 29 #include "extensions/browser/extension_registry.h" |
| 30 #include "extensions/browser/extension_system.h" | 30 #include "extensions/browser/extension_system.h" |
| 31 #include "extensions/browser/pref_names.h" | 31 #include "extensions/browser/pref_names.h" |
| 32 #include "extensions/common/extension_set.h" | 32 #include "extensions/common/extension_set.h" |
| 33 #include "extensions/common/manifest.h" | 33 #include "extensions/common/manifest.h" |
| 34 #include "extensions/common/manifest_url_handlers.h" | 34 #include "extensions/common/manifest_url_handlers.h" |
| 35 #include "extensions/common/one_shot_event.h" | 35 #include "extensions/common/one_shot_event.h" |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 ScopedInstallVerifierBypassForTest::~ScopedInstallVerifierBypassForTest() { | 667 ScopedInstallVerifierBypassForTest::~ScopedInstallVerifierBypassForTest() { |
| 668 g_bypass_for_test = old_value_; | 668 g_bypass_for_test = old_value_; |
| 669 } | 669 } |
| 670 | 670 |
| 671 // static | 671 // static |
| 672 bool ScopedInstallVerifierBypassForTest::ShouldBypass() { | 672 bool ScopedInstallVerifierBypassForTest::ShouldBypass() { |
| 673 return g_bypass_for_test; | 673 return g_bypass_for_test; |
| 674 } | 674 } |
| 675 | 675 |
| 676 } // namespace extensions | 676 } // namespace extensions |
| OLD | NEW |