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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/options2/chromeos/cros_language_options_handler2.cc
===================================================================
--- chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc (revision 116011)
+++ chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc (working copy)
@@ -19,8 +19,8 @@
#include "chrome/browser/chromeos/input_method/input_method_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/user_metrics.h"
+#include "content/public/browser/web_contents.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -214,7 +214,7 @@
content::RecordAction(UserMetricsAction("LanguageOptions_SignOut"));
Browser* browser = Browser::GetBrowserForController(
- &web_ui()->tab_contents()->GetController(), NULL);
+ &web_ui()->web_contents()->GetController(), NULL);
if (browser)
browser->ExecuteCommand(IDC_EXIT);
}

Powered by Google App Engine
This is Rietveld 408576698