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

Unified Diff: chrome/browser/ui/find_bar/find_bar_controller.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/ui/find_bar/find_bar_controller.cc
===================================================================
--- chrome/browser/ui/find_bar/find_bar_controller.cc (revision 116288)
+++ chrome/browser/ui/find_bar/find_bar_controller.cc (working copy)
@@ -20,6 +20,7 @@
#include "content/public/browser/notification_source.h"
#include "ui/gfx/rect.h"
+using content::NavigationController;
using content::WebContents;
// The minimum space between the FindInPage window and the search result.
@@ -94,7 +95,7 @@
registrar_.Add(
this,
content::NOTIFICATION_NAV_ENTRY_COMMITTED,
- content::Source<content::NavigationController>(
+ content::Source<NavigationController>(
&tab_contents_->web_contents()->GetController()));
MaybeSetPrepopulateText();
@@ -133,8 +134,8 @@
}
}
} else if (type == content::NOTIFICATION_NAV_ENTRY_COMMITTED) {
- content::NavigationController* source_controller =
- content::Source<content::NavigationController>(source).ptr();
+ NavigationController* source_controller =
+ content::Source<NavigationController>(source).ptr();
if (source_controller == &tab_contents_->web_contents()->GetController()) {
content::LoadCommittedDetails* commit_details =
content::Details<content::LoadCommittedDetails>(details).ptr();

Powered by Google App Engine
This is Rietveld 408576698