summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_file_browser_private_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_file_browser_private_api.cc')
-rw-r--r--chrome/browser/extensions/extension_file_browser_private_api.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/browser/extensions/extension_file_browser_private_api.cc b/chrome/browser/extensions/extension_file_browser_private_api.cc
index 80073b4..a818a83 100644
--- a/chrome/browser/extensions/extension_file_browser_private_api.cc
+++ b/chrome/browser/extensions/extension_file_browser_private_api.cc
@@ -352,8 +352,7 @@ void RequestLocalFileSystemFunction::RequestOnFileThread(
}
bool RequestLocalFileSystemFunction::RunImpl() {
- if (!dispatcher() || !dispatcher()->render_view_host() ||
- !dispatcher()->render_view_host()->process())
+ if (!dispatcher() || !render_view_host() || !render_view_host()->process())
return false;
BrowserThread::PostTask(
@@ -361,7 +360,7 @@ bool RequestLocalFileSystemFunction::RunImpl() {
NewRunnableMethod(this,
&RequestLocalFileSystemFunction::RequestOnFileThread,
source_url_,
- dispatcher()->render_view_host()->process()->id()));
+ render_view_host()->process()->id()));
// Will finish asynchronously.
return true;
}
@@ -679,7 +678,7 @@ void ExecuteTasksFileBrowserFunction::RequestFileEntryOnFileThread(
new ExecuteTasksFileSystemCallbackDispatcher(
this,
profile(),
- dispatcher()->render_view_host()->process()->id(),
+ render_view_host()->process()->id(),
source_url,
GetExtension(),
task_id,
@@ -805,13 +804,13 @@ FileDialogFunction::Callback::Find(int32 tab_id) {
int32 FileDialogFunction::GetTabId() const {
- return dispatcher()->delegate()->associated_tab_contents()->
+ return dispatcher()->delegate()->GetAssociatedTabContents()->
controller().session_id().id();
}
const FileDialogFunction::Callback& FileDialogFunction::GetCallback() const {
if (!dispatcher() || !dispatcher()->delegate() ||
- !dispatcher()->delegate()->associated_tab_contents()) {
+ !dispatcher()->delegate()->GetAssociatedTabContents()) {
return Callback::null();
}
return Callback::Find(GetTabId());
@@ -819,7 +818,7 @@ const FileDialogFunction::Callback& FileDialogFunction::GetCallback() const {
void FileDialogFunction::CloseDialog(HtmlDialogView* dialog) {
DCHECK(dialog);
- TabContents* contents = dispatcher()->delegate()->associated_tab_contents();
+ TabContents* contents = dispatcher()->delegate()->GetAssociatedTabContents();
if (contents)
dialog->CloseContents(contents);
}