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

Unified Diff: chrome/browser/chromeos/boot_times_loader.cc

Issue 8983012: Get rid of content::NavigationController in cc file and use "using" instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/boot_times_loader.cc
===================================================================
--- chrome/browser/chromeos/boot_times_loader.cc (revision 116288)
+++ chrome/browser/chromeos/boot_times_loader.cc (working copy)
@@ -33,11 +33,12 @@
#include "content/public/browser/notification_service.h"
using content::BrowserThread;
+using content::NavigationController;
using content::WebContents;
namespace {
-RenderWidgetHost* GetRenderWidgetHost(content::NavigationController* tab) {
+RenderWidgetHost* GetRenderWidgetHost(NavigationController* tab) {
WebContents* web_contents = tab->GetWebContents();
if (web_contents) {
RenderWidgetHostView* render_widget_host_view =
@@ -440,8 +441,8 @@
break;
}
case content::NOTIFICATION_LOAD_START: {
- content::NavigationController* tab =
- content::Source<content::NavigationController>(source).ptr();
+ NavigationController* tab =
+ content::Source<NavigationController>(source).ptr();
RenderWidgetHost* rwh = GetRenderWidgetHost(tab);
DCHECK(rwh);
AddLoginTimeMarker("TabLoad-Start: " + GetTabUrl(rwh), false);
@@ -449,8 +450,8 @@
break;
}
case content::NOTIFICATION_LOAD_STOP: {
- content::NavigationController* tab =
- content::Source<content::NavigationController>(source).ptr();
+ NavigationController* tab =
+ content::Source<NavigationController>(source).ptr();
RenderWidgetHost* rwh = GetRenderWidgetHost(tab);
if (render_widget_hosts_loading_.find(rwh) !=
render_widget_hosts_loading_.end()) {
« no previous file with comments | « chrome/browser/browser_keyevents_browsertest.cc ('k') | chrome/browser/content_settings/tab_specific_content_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698