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

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

Issue 8493017: Cleanup extension permissions module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 11 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) 2011 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/extension_navigation_observer.h" 5 #include "chrome/browser/extensions/extension_navigation_observer.h"
6 6
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "content/public/browser/navigation_controller.h" 9 #include "content/public/browser/navigation_controller.h"
10 #include "content/public/browser/navigation_entry.h" 10 #include "content/public/browser/navigation_entry.h"
11 #include "content/public/browser/notification_service.h" 11 #include "content/public/browser/notification_service.h"
12 #include "content/public/browser/notification_types.h"
12 13
13 using content::NavigationController; 14 using content::NavigationController;
14 using content::NavigationEntry; 15 using content::NavigationEntry;
15 16
16 ExtensionNavigationObserver::ExtensionNavigationObserver(Profile* profile) 17 ExtensionNavigationObserver::ExtensionNavigationObserver(Profile* profile)
17 : profile_(profile) { 18 : profile_(profile) {
18 RegisterForNotifications(); 19 RegisterForNotifications();
19 } 20 }
20 21
21 ExtensionNavigationObserver::~ExtensionNavigationObserver() {} 22 ExtensionNavigationObserver::~ExtensionNavigationObserver() {}
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 in_progress_prompt_extension_id_ = ""; 104 in_progress_prompt_extension_id_ = "";
104 in_progress_prompt_navigation_controller_ = NULL; 105 in_progress_prompt_navigation_controller_ = NULL;
105 extension_install_ui_.reset(); 106 extension_install_ui_.reset();
106 107
107 std::string histogram_name = user_initiated ? 108 std::string histogram_name = user_initiated ?
108 "Extensions.Permissions_ReEnableCancel" : 109 "Extensions.Permissions_ReEnableCancel" :
109 "Extensions.Permissions_ReEnableAbort"; 110 "Extensions.Permissions_ReEnableAbort";
110 ExtensionService::RecordPermissionMessagesHistogram( 111 ExtensionService::RecordPermissionMessagesHistogram(
111 extension, histogram_name.c_str()); 112 extension, histogram_name.c_str());
112 } 113 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extension_permissions_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698