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

Unified Diff: chrome/browser/ui/browser.cc

Issue 10908262: [cros] disable GDrive option on certain file pickers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 8 years, 3 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/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 7f10f61853dd71c68498b3106202b44f83af2ed6..f53de2440d50634c9678a4a28394911c3c4206af 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -814,9 +814,11 @@ void Browser::OpenFile() {
// TODO(beng): figure out how to juggle this.
gfx::NativeWindow parent_window = window_->GetNativeWindow();
+ ui::SelectFileDialog::FileTypeInfo file_types;
+ file_types.support_gdata = true;
select_file_dialog_->SelectFile(ui::SelectFileDialog::SELECT_OPEN_FILE,
string16(), directory,
- NULL, 0, FILE_PATH_LITERAL(""),
+ &file_types, 0, FILE_PATH_LITERAL(""),
parent_window, NULL);
}

Powered by Google App Engine
This is Rietveld 408576698