Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: chrome/browser/extensions/navigation_observer.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | chrome/browser/extensions/options_page_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698