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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_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
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/login/login_prompt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/intents/web_intent_picker_controller.cc
===================================================================
--- chrome/browser/ui/intents/web_intent_picker_controller.cc (revision 116288)
+++ chrome/browser/ui/intents/web_intent_picker_controller.cc (working copy)
@@ -26,6 +26,8 @@
#include "ui/gfx/codec/png_codec.h"
#include "webkit/glue/web_intent_service_data.h"
+using content::NavigationController;
+
namespace {
// Gets the favicon service for the profile in |tab_contents|.
@@ -116,12 +118,11 @@
picker_(NULL),
pending_async_count_(0),
service_tab_(NULL) {
- content::NavigationController* controller =
- &wrapper->tab_contents()->GetController();
+ NavigationController* controller = &wrapper->tab_contents()->GetController();
registrar_.Add(this, content::NOTIFICATION_LOAD_START,
- content::Source<content::NavigationController>(controller));
+ content::Source<NavigationController>(controller));
registrar_.Add(this, content::NOTIFICATION_TAB_CLOSING,
- content::Source<content::NavigationController>(controller));
+ content::Source<NavigationController>(controller));
}
WebIntentPickerController::~WebIntentPickerController() {
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/login/login_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698