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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10798011: views: Add a cross-platform SelectFileDialogExtension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromeos/extensions/file_browser_private_api.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/chromeos/gdata/gdata_util.h" 29 #include "chrome/browser/chromeos/gdata/gdata_util.h"
30 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" 30 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
31 #include "chrome/browser/extensions/extension_function_dispatcher.h" 31 #include "chrome/browser/extensions/extension_function_dispatcher.h"
32 #include "chrome/browser/extensions/extension_process_manager.h" 32 #include "chrome/browser/extensions/extension_process_manager.h"
33 #include "chrome/browser/extensions/extension_service.h" 33 #include "chrome/browser/extensions/extension_service.h"
34 #include "chrome/browser/extensions/extension_tab_util.h" 34 #include "chrome/browser/extensions/extension_tab_util.h"
35 #include "chrome/browser/extensions/process_map.h" 35 #include "chrome/browser/extensions/process_map.h"
36 #include "chrome/browser/profiles/profile.h" 36 #include "chrome/browser/profiles/profile.h"
37 #include "chrome/browser/ui/browser.h" 37 #include "chrome/browser/ui/browser.h"
38 #include "chrome/browser/ui/browser_window.h" 38 #include "chrome/browser/ui/browser_window.h"
39 #include "chrome/browser/ui/views/select_file_dialog_extension.h" 39 #include "chrome/browser/ui/select_file_dialog_extension.h"
40 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 40 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
41 #include "chrome/common/extensions/extension.h" 41 #include "chrome/common/extensions/extension.h"
42 #include "chrome/common/extensions/extension_icon_set.h" 42 #include "chrome/common/extensions/extension_icon_set.h"
43 #include "chrome/common/extensions/file_browser_handler.h" 43 #include "chrome/common/extensions/file_browser_handler.h"
44 #include "chrome/common/pref_names.h" 44 #include "chrome/common/pref_names.h"
45 #include "content/public/browser/child_process_security_policy.h" 45 #include "content/public/browser/child_process_security_policy.h"
46 #include "content/public/browser/render_process_host.h" 46 #include "content/public/browser/render_process_host.h"
47 #include "content/public/browser/render_view_host.h" 47 #include "content/public/browser/render_view_host.h"
48 #include "googleurl/src/gurl.h" 48 #include "googleurl/src/gurl.h"
49 #include "grit/generated_resources.h" 49 #include "grit/generated_resources.h"
(...skipping 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 gdata::GDataSystemService* system_service = 2385 gdata::GDataSystemService* system_service =
2386 gdata::GDataSystemServiceFactory::GetForProfile(profile_); 2386 gdata::GDataSystemServiceFactory::GetForProfile(profile_);
2387 if (!system_service || !system_service->file_system()) 2387 if (!system_service || !system_service->file_system())
2388 return false; 2388 return false;
2389 2389
2390 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); 2390 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string));
2391 system_service->file_system()->RequestDirectoryRefresh(directory_path); 2391 system_service->file_system()->RequestDirectoryRefresh(directory_path);
2392 2392
2393 return true; 2393 return true;
2394 } 2394 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698