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

Unified Diff: chrome/browser/ui/webui/cloud_print_signin_dialog.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/webui/cloud_print_signin_dialog.cc
===================================================================
--- chrome/browser/ui/webui/cloud_print_signin_dialog.cc (revision 116288)
+++ chrome/browser/ui/webui/cloud_print_signin_dialog.cc (working copy)
@@ -29,6 +29,7 @@
#include "content/public/browser/web_ui_message_handler.h"
using content::BrowserThread;
+using content::NavigationController;
using content::NavigationEntry;
using content::WebContents;
using content::WebUIMessageHandler;
@@ -65,14 +66,14 @@
void CloudPrintSigninFlowHandler::RegisterMessages() {
if (web_ui() && web_ui()->web_contents()) {
- content::NavigationController* controller =
+ NavigationController* controller =
&web_ui()->web_contents()->GetController();
NavigationEntry* pending_entry = controller->GetPendingEntry();
if (pending_entry)
pending_entry->SetURL(CloudPrintURL(
Profile::FromWebUI(web_ui())).GetCloudPrintSigninURL());
registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED,
- content::Source<content::NavigationController>(controller));
+ content::Source<NavigationController>(controller));
}
}
« no previous file with comments | « chrome/browser/ui/web_applications/web_app_ui.cc ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698