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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10094012: Made File Manager respect the user-selected launch type (tab/pinned tab/window/fullscreen) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 8 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/chromeos/extensions/file_browser_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index 6a65d74eb093fffcb201601cea3a9c48b1d2bc20..93a9d6cf34c074720d08e3cf855c434df3db78e3 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -851,7 +851,7 @@ void ViewFilesFunction::GetLocalPathsResponseOnUIThread(
for (SelectedFileInfoList::const_iterator iter = files.begin();
iter != files.end();
++iter) {
- bool handled = file_manager_util::TryViewingFile(iter->path);
+ bool handled = file_manager_util::TryViewingFile(profile(), iter->path);
// If there is no default browser-defined handler for viewing this type
// of file, try to see if we have any extension installed for it instead.
if (!handled && files.size() == 1)
@@ -1480,12 +1480,12 @@ bool FileDialogStringsFunction::RunImpl() {
l10n_util::GetStringUTF16(IDS_LEARN_MORE));
dict->SetString("PDF_VIEW_ENABLED",
- file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ?
+ file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf") ?
"true" : "false");
ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
- if (gdata::util::IsGDataAvailable(profile_))
+ if (gdata::util::IsGDataAvailable(profile()))
dict->SetString("ENABLE_GDATA", "1");
return true;

Powered by Google App Engine
This is Rietveld 408576698