OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/extension_message_bubble_controller.h" | 5 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_list.h" | 15 #include "chrome/browser/ui/browser_list.h" |
16 #include "chrome/browser/ui/toolbar/toolbar_actions_model.h" | 16 #include "chrome/browser/ui/toolbar/toolbar_actions_model.h" |
17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "components/strings/grit/components_strings.h" |
18 #include "content/public/browser/user_metrics.h" | 19 #include "content/public/browser/user_metrics.h" |
19 #include "extensions/browser/extension_prefs.h" | 20 #include "extensions/browser/extension_prefs.h" |
20 #include "extensions/browser/extension_registry.h" | 21 #include "extensions/browser/extension_registry.h" |
21 #include "extensions/browser/extension_system.h" | 22 #include "extensions/browser/extension_system.h" |
22 #include "grit/components_strings.h" | |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // How many extensions to show in the bubble (max). | 29 // How many extensions to show in the bubble (max). |
30 const int kMaxExtensionsToShow = 7; | 30 const int kMaxExtensionsToShow = 7; |
31 | 31 |
32 // Whether or not to ignore the learn more link navigation for testing. | 32 // Whether or not to ignore the learn more link navigation for testing. |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 if (delegate_->ClearProfileSetAfterAction()) | 306 if (delegate_->ClearProfileSetAfterAction()) |
307 GetProfileSet()->clear(); | 307 GetProfileSet()->clear(); |
308 } | 308 } |
309 } | 309 } |
310 | 310 |
311 std::set<Profile*>* ExtensionMessageBubbleController::GetProfileSet() { | 311 std::set<Profile*>* ExtensionMessageBubbleController::GetProfileSet() { |
312 return &g_shown_for_profiles.Get()[delegate_->GetKey()]; | 312 return &g_shown_for_profiles.Get()[delegate_->GetKey()]; |
313 } | 313 } |
314 | 314 |
315 } // namespace extensions | 315 } // namespace extensions |
OLD | NEW |