| 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" | 7 #include "chrome/browser/extensions/extension_install_ui.h" |
| 8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 9 #include "chrome/browser/extensions/extension_system.h" | |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| 12 #include "content/public/browser/navigation_entry.h" | 11 #include "content/public/browser/navigation_entry.h" |
| 13 #include "content/public/browser/notification_service.h" | 12 #include "content/public/browser/notification_service.h" |
| 14 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
| 14 #include "extensions/browser/extension_system.h" |
| 15 | 15 |
| 16 using content::NavigationController; | 16 using content::NavigationController; |
| 17 using content::NavigationEntry; | 17 using content::NavigationEntry; |
| 18 | 18 |
| 19 namespace extensions { | 19 namespace extensions { |
| 20 | 20 |
| 21 NavigationObserver::NavigationObserver(Profile* profile) : profile_(profile) { | 21 NavigationObserver::NavigationObserver(Profile* profile) : profile_(profile) { |
| 22 RegisterForNotifications(); | 22 RegisterForNotifications(); |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 extension_install_prompt_.reset(); | 111 extension_install_prompt_.reset(); |
| 112 | 112 |
| 113 std::string histogram_name = user_initiated ? | 113 std::string histogram_name = user_initiated ? |
| 114 "Extensions.Permissions_ReEnableCancel" : | 114 "Extensions.Permissions_ReEnableCancel" : |
| 115 "Extensions.Permissions_ReEnableAbort"; | 115 "Extensions.Permissions_ReEnableAbort"; |
| 116 ExtensionService::RecordPermissionMessagesHistogram( | 116 ExtensionService::RecordPermissionMessagesHistogram( |
| 117 extension, histogram_name.c_str()); | 117 extension, histogram_name.c_str()); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace extensions | 120 } // namespace extensions |
| OLD | NEW |