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

Unified Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.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/chromeos/imageburner/imageburner_ui.cc
===================================================================
--- chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc (revision 116011)
+++ chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc (working copy)
@@ -30,6 +30,7 @@
using content::BrowserThread;
using content::DownloadItem;
+using content::WebContents;
const char kPropertyDevicePath[] = "devicePath";
const char kPropertyFilePath[] = "filePath";
@@ -127,8 +128,8 @@
//
////////////////////////////////////////////////////////////////////////////////
-WebUIHandler::WebUIHandler(TabContents* contents)
- : tab_contents_(contents),
+WebUIHandler::WebUIHandler(WebContents* contents)
+ : web_contents_(contents),
download_manager_(NULL),
active_download_item_(NULL),
burn_manager_(NULL),
@@ -390,7 +391,7 @@
if (success) {
zip_image_file_path_ =
burn_manager_->GetImageDir().Append(kImageZipFileName);
- burn_manager_->FetchConfigFile(tab_contents_, this);
+ burn_manager_->FetchConfigFile(web_contents_, this);
} else {
DownloadCompleted(success);
}
@@ -411,7 +412,7 @@
if (!download_manager_) {
download_manager_ =
- tab_contents_->GetBrowserContext()->GetDownloadManager();
+ web_contents_->GetBrowserContext()->GetDownloadManager();
download_manager_->AddObserver(this);
}
if (!state_machine_->download_started()) {
@@ -419,7 +420,7 @@
if (!state_machine_->image_download_requested()) {
state_machine_->OnImageDownloadRequested();
burn_manager_->downloader()->DownloadFile(image_download_url_,
- zip_image_file_path_, tab_contents_);
+ zip_image_file_path_, web_contents_);
}
}
}
@@ -643,7 +644,7 @@
//
////////////////////////////////////////////////////////////////////////////////
-ImageBurnUI::ImageBurnUI(TabContents* contents) : ChromeWebUI(contents) {
+ImageBurnUI::ImageBurnUI(WebContents* contents) : ChromeWebUI(contents) {
imageburner::WebUIHandler* handler = new imageburner::WebUIHandler(contents);
AddMessageHandler(handler);

Powered by Google App Engine
This is Rietveld 408576698