OLD | NEW |
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/devtools/devtools_file_helper.h" | 5 #include "chrome/browser/devtools/devtools_file_helper.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "content/public/browser/browser_context.h" | 23 #include "content/public/browser/browser_context.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 #include "content/public/browser/child_process_security_policy.h" | 25 #include "content/public/browser/child_process_security_policy.h" |
26 #include "content/public/browser/download_manager.h" | 26 #include "content/public/browser/download_manager.h" |
27 #include "content/public/browser/render_process_host.h" | 27 #include "content/public/browser/render_process_host.h" |
28 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
29 #include "content/public/browser/web_contents.h" | 29 #include "content/public/browser/web_contents.h" |
30 #include "content/public/common/content_client.h" | 30 #include "content/public/common/content_client.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "ui/base/dialogs/select_file_dialog.h" | |
33 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 #include "ui/shell_dialogs/select_file_dialog.h" |
34 #include "webkit/fileapi/file_system_util.h" | 34 #include "webkit/fileapi/file_system_util.h" |
35 #include "webkit/fileapi/isolated_context.h" | 35 #include "webkit/fileapi/isolated_context.h" |
36 | 36 |
37 using base::Bind; | 37 using base::Bind; |
38 using base::Callback; | 38 using base::Callback; |
39 using content::BrowserContext; | 39 using content::BrowserContext; |
40 using content::BrowserThread; | 40 using content::BrowserThread; |
41 using content::DownloadManager; | 41 using content::DownloadManager; |
42 using content::RenderViewHost; | 42 using content::RenderViewHost; |
43 using content::WebContents; | 43 using content::WebContents; |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 void DevToolsFileHelper::RemoveFileSystem(const std::string& file_system_path) { | 388 void DevToolsFileHelper::RemoveFileSystem(const std::string& file_system_path) { |
389 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 389 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
390 FilePath path = FilePath::FromUTF8Unsafe(file_system_path); | 390 FilePath path = FilePath::FromUTF8Unsafe(file_system_path); |
391 isolated_context()->RevokeFileSystemByPath(path); | 391 isolated_context()->RevokeFileSystemByPath(path); |
392 | 392 |
393 DictionaryPrefUpdate update(profile_->GetPrefs(), | 393 DictionaryPrefUpdate update(profile_->GetPrefs(), |
394 prefs::kDevToolsFileSystemPaths); | 394 prefs::kDevToolsFileSystemPaths); |
395 DictionaryValue* file_systems_paths_value = update.Get(); | 395 DictionaryValue* file_systems_paths_value = update.Get(); |
396 file_systems_paths_value->RemoveWithoutPathExpansion(file_system_path, NULL); | 396 file_systems_paths_value->RemoveWithoutPathExpansion(file_system_path, NULL); |
397 } | 397 } |
OLD | NEW |