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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/set_wallpaper_options_handler.cc

Issue 10908262: [cros] disable GDrive option on certain file pickers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invert default in file manager 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/chromeos/set_wallpaper_options_handler .h" 5 #include "chrome/browser/ui/webui/options/chromeos/set_wallpaper_options_handler .h"
6 6
7 #include "ash/desktop_background/desktop_background_controller.h" 7 #include "ash/desktop_background/desktop_background_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 26 matching lines...) Expand all
37 ui::SelectFileDialog::FileTypeInfo file_type_info; 37 ui::SelectFileDialog::FileTypeInfo file_type_info;
38 file_type_info.extensions.resize(1); 38 file_type_info.extensions.resize(1);
39 39
40 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpg")); 40 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpg"));
41 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpeg")); 41 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpeg"));
42 42
43 file_type_info.extension_description_overrides.resize(1); 43 file_type_info.extension_description_overrides.resize(1);
44 file_type_info.extension_description_overrides[0] = 44 file_type_info.extension_description_overrides[0] =
45 l10n_util::GetStringUTF16(IDS_IMAGE_FILES); 45 l10n_util::GetStringUTF16(IDS_IMAGE_FILES);
46 46
47 file_type_info.support_gdata = true;
47 return file_type_info; 48 return file_type_info;
48 } 49 }
49 50
50 } // namespace 51 } // namespace
51 52
52 SetWallpaperOptionsHandler::SetWallpaperOptionsHandler() 53 SetWallpaperOptionsHandler::SetWallpaperOptionsHandler()
53 : ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { 54 : ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
54 } 55 }
55 56
56 SetWallpaperOptionsHandler::~SetWallpaperOptionsHandler() { 57 SetWallpaperOptionsHandler::~SetWallpaperOptionsHandler() {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 } 254 }
254 255
255 gfx::NativeWindow SetWallpaperOptionsHandler::GetBrowserWindow() const { 256 gfx::NativeWindow SetWallpaperOptionsHandler::GetBrowserWindow() const {
256 Browser* browser = 257 Browser* browser =
257 browser::FindBrowserWithWebContents(web_ui()->GetWebContents()); 258 browser::FindBrowserWithWebContents(web_ui()->GetWebContents());
258 return browser->window()->GetNativeWindow(); 259 return browser->window()->GetNativeWindow();
259 } 260 }
260 261
261 } // namespace options 262 } // namespace options
262 } // namespace chromeos 263 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc ('k') | ui/base/dialogs/select_file_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698