| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/proxy_overridden_bubble_delegate.h" | 5 #include "chrome/browser/extensions/proxy_overridden_bubble_delegate.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/extensions/settings_api_helpers.h" | 10 #include "chrome/browser/extensions/settings_api_helpers.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
| 15 #include "components/strings/grit/components_strings.h" |
| 15 #include "extensions/browser/extension_prefs.h" | 16 #include "extensions/browser/extension_prefs.h" |
| 16 #include "extensions/browser/extension_registry.h" | 17 #include "extensions/browser/extension_registry.h" |
| 17 #include "extensions/browser/extension_system.h" | 18 #include "extensions/browser/extension_system.h" |
| 18 #include "grit/components_strings.h" | |
| 19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // The minimum time to wait (since the extension was installed) before notifying | 25 // The minimum time to wait (since the extension was installed) before notifying |
| 26 // the user about it. | 26 // the user about it. |
| 27 const int kDaysSinceInstallMin = 7; | 27 const int kDaysSinceInstallMin = 7; |
| 28 | 28 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 UMA_HISTOGRAM_ENUMERATION("ProxyOverriddenBubble.UserSelection", | 141 UMA_HISTOGRAM_ENUMERATION("ProxyOverriddenBubble.UserSelection", |
| 142 action, | 142 action, |
| 143 ExtensionMessageBubbleController::ACTION_BOUNDARY); | 143 ExtensionMessageBubbleController::ACTION_BOUNDARY); |
| 144 } | 144 } |
| 145 | 145 |
| 146 const char* ProxyOverriddenBubbleDelegate::GetKey() { | 146 const char* ProxyOverriddenBubbleDelegate::GetKey() { |
| 147 return "ProxyOverriddenBubbleDelegate"; | 147 return "ProxyOverriddenBubbleDelegate"; |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace extensions | 150 } // namespace extensions |
| OLD | NEW |