OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/navigation_observer.h" | 5 #include "chrome/browser/extensions/navigation_observer.h" |
6 | 6 |
7 #include "chrome/browser/extensions/extension_install_ui.h" | |
8 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
10 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/navigation_controller.h" |
11 #include "content/public/browser/navigation_entry.h" | 10 #include "content/public/browser/navigation_entry.h" |
12 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
13 #include "content/public/browser/notification_types.h" | 12 #include "content/public/browser/notification_types.h" |
14 #include "extensions/browser/extension_prefs.h" | 13 #include "extensions/browser/extension_prefs.h" |
15 #include "extensions/browser/extension_registry.h" | 14 #include "extensions/browser/extension_registry.h" |
16 #include "extensions/browser/extension_system.h" | 15 #include "extensions/browser/extension_system.h" |
17 | 16 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 extension_install_prompt_.reset(); | 112 extension_install_prompt_.reset(); |
114 | 113 |
115 std::string histogram_name = user_initiated | 114 std::string histogram_name = user_initiated |
116 ? "Extensions.Permissions_ReEnableCancel2" | 115 ? "Extensions.Permissions_ReEnableCancel2" |
117 : "Extensions.Permissions_ReEnableAbort2"; | 116 : "Extensions.Permissions_ReEnableAbort2"; |
118 ExtensionService::RecordPermissionMessagesHistogram( | 117 ExtensionService::RecordPermissionMessagesHistogram( |
119 extension, histogram_name.c_str()); | 118 extension, histogram_name.c_str()); |
120 } | 119 } |
121 | 120 |
122 } // namespace extensions | 121 } // namespace extensions |
OLD | NEW |