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

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: Moved changes requiring external OWNERs approval to another patch 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_handler_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bb257ae9108fcfea4f94616b2f1737617bb18f89..7b2e2731c244ef85dbb7657295d203a0615d36b1 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -865,7 +865,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)
@@ -1494,12 +1494,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;
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_handler_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698