| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ui/extensions/extension_message_bubble_factory.h" | 5 #include "chrome/browser/ui/extensions/extension_message_bubble_factory.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 controller.reset(); | 167 controller.reset(); |
| 168 return controller; | 168 return controller; |
| 169 } | 169 } |
| 170 | 170 |
| 171 // static | 171 // static |
| 172 void ExtensionMessageBubbleFactory::set_override_for_tests( | 172 void ExtensionMessageBubbleFactory::set_override_for_tests( |
| 173 OverrideForTesting override) { | 173 OverrideForTesting override) { |
| 174 g_override_for_testing = override; | 174 g_override_for_testing = override; |
| 175 } | 175 } |
| 176 |
| 177 // static |
| 178 bool ExtensionMessageBubbleFactory::is_enabled_for_testing() { |
| 179 return g_override_for_testing == OVERRIDE_ENABLED; |
| 180 } |
| OLD | NEW |