| 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/settings_api_bubble_delegate.h" | 5 #include "chrome/browser/extensions/settings_api_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/browser/ui/startup/startup_browser_creator.h" | 13 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
| 14 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.
h" | 14 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.
h" |
| 15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "chrome/grit/chromium_strings.h" | 16 #include "chrome/grit/chromium_strings.h" |
| 17 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
| 18 #include "components/strings/grit/components_strings.h" |
| 18 #include "extensions/browser/extension_prefs.h" | 19 #include "extensions/browser/extension_prefs.h" |
| 19 #include "extensions/browser/extension_registry.h" | 20 #include "extensions/browser/extension_registry.h" |
| 20 #include "extensions/browser/extension_system.h" | 21 #include "extensions/browser/extension_system.h" |
| 21 #include "grit/components_strings.h" | |
| 22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // Whether the user has been notified about extension taking over some aspect of | 28 // Whether the user has been notified about extension taking over some aspect of |
| 29 // the user's settings (homepage, startup pages, or search engine). | 29 // the user's settings (homepage, startup pages, or search engine). |
| 30 const char kSettingsBubbleAcknowledged[] = "ack_settings_bubble"; | 30 const char kSettingsBubbleAcknowledged[] = "ack_settings_bubble"; |
| 31 | 31 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 case BUBBLE_TYPE_STARTUP_PAGES: | 245 case BUBBLE_TYPE_STARTUP_PAGES: |
| 246 return "SettingsApiBubbleDelegate.StartupPages"; | 246 return "SettingsApiBubbleDelegate.StartupPages"; |
| 247 case BUBBLE_TYPE_SEARCH_ENGINE: | 247 case BUBBLE_TYPE_SEARCH_ENGINE: |
| 248 return "SettingsApiBubbleDelegate.SearchEngine"; | 248 return "SettingsApiBubbleDelegate.SearchEngine"; |
| 249 } | 249 } |
| 250 NOTREACHED(); | 250 NOTREACHED(); |
| 251 return ""; | 251 return ""; |
| 252 } | 252 } |
| 253 | 253 |
| 254 } // namespace extensions | 254 } // namespace extensions |
| OLD | NEW |