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_macros.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/browser/extensions/extension_management.h" | 19 #include "chrome/browser/extensions/extension_management.h" |
20 #include "chrome/browser/extensions/extension_service.h" | 20 #include "chrome/browser/extensions/extension_service.h" |
21 #include "chrome/browser/extensions/install_signer.h" | 21 #include "chrome/browser/extensions/install_signer.h" |
22 #include "chrome/browser/extensions/install_verifier_factory.h" | 22 #include "chrome/browser/extensions/install_verifier_factory.h" |
23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
24 #include "chrome/grit/generated_resources.h" | 24 #include "chrome/grit/generated_resources.h" |
25 #include "components/prefs/pref_service.h" | 25 #include "components/prefs/pref_service.h" |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 ScopedInstallVerifierBypassForTest::~ScopedInstallVerifierBypassForTest() { | 671 ScopedInstallVerifierBypassForTest::~ScopedInstallVerifierBypassForTest() { |
672 g_bypass_for_test = old_value_; | 672 g_bypass_for_test = old_value_; |
673 } | 673 } |
674 | 674 |
675 // static | 675 // static |
676 bool ScopedInstallVerifierBypassForTest::ShouldBypass() { | 676 bool ScopedInstallVerifierBypassForTest::ShouldBypass() { |
677 return g_bypass_for_test; | 677 return g_bypass_for_test; |
678 } | 678 } |
679 | 679 |
680 } // namespace extensions | 680 } // namespace extensions |
OLD | NEW |