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

Unified Diff: chrome/browser/debugger/devtools_window.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/debugger/devtools_window.cc
===================================================================
--- chrome/browser/debugger/devtools_window.cc (revision 116288)
+++ chrome/browser/debugger/devtools_window.cc (working copy)
@@ -58,6 +58,7 @@
using content::DevToolsAgentHostRegistry;
using content::DevToolsClientHost;
using content::DevToolsManager;
+using content::NavigationController;
using content::NavigationEntry;
using content::OpenURLParams;
using content::WebContents;
@@ -206,12 +207,12 @@
registrar_.Add(
this,
content::NOTIFICATION_LOAD_STOP,
- content::Source<content::NavigationController>(
+ content::Source<NavigationController>(
&tab_contents_->web_contents()->GetController()));
registrar_.Add(
this,
content::NOTIFICATION_TAB_CLOSING,
- content::Source<content::NavigationController>(
+ content::Source<NavigationController>(
&tab_contents_->web_contents()->GetController()));
registrar_.Add(
this,
@@ -383,7 +384,7 @@
if (!inspected_tab_)
return false;
- const content::NavigationController& controller =
+ const NavigationController& controller =
inspected_tab_->tab_contents()->GetController();
for (BrowserList::const_iterator it = BrowserList::begin();
it != BrowserList::end(); ++it) {
@@ -483,7 +484,7 @@
DoAction();
AddDevToolsExtensionsToClient();
} else if (type == content::NOTIFICATION_TAB_CLOSING) {
- if (content::Source<content::NavigationController>(source).ptr() ==
+ if (content::Source<NavigationController>(source).ptr() ==
&tab_contents_->web_contents()->GetController()) {
// This happens when browser closes all of its tabs as a result
// of window.Close event.
« no previous file with comments | « chrome/browser/debugger/devtools_sanity_unittest.cc ('k') | chrome/browser/download/download_request_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698