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

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 4879001: Extend simple_file_system to use SandboxedFileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 years 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 | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #undef LOG 5 #undef LOG
6 6
7 #include "webkit/tools/test_shell/test_shell.h" 7 #include "webkit/tools/test_shell/test_shell.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 event_sending_controller_.reset(new EventSendingController(this)); 146 event_sending_controller_.reset(new EventSendingController(this));
147 plain_text_controller_.reset(new PlainTextController(this)); 147 plain_text_controller_.reset(new PlainTextController(this));
148 text_input_controller_.reset(new TextInputController(this)); 148 text_input_controller_.reset(new TextInputController(this));
149 navigation_controller_.reset(new TestNavigationController(this)); 149 navigation_controller_.reset(new TestNavigationController(this));
150 notification_presenter_.reset(new TestNotificationPresenter(this)); 150 notification_presenter_.reset(new TestNotificationPresenter(this));
151 151
152 URLRequestFilter* filter = URLRequestFilter::GetInstance(); 152 URLRequestFilter* filter = URLRequestFilter::GetInstance();
153 filter->AddHostnameHandler("test-shell-resource", "inspector", 153 filter->AddHostnameHandler("test-shell-resource", "inspector",
154 &URLRequestTestShellFileJob::InspectorFactory); 154 &URLRequestTestShellFileJob::InspectorFactory);
155 url_util::AddStandardScheme("test-shell-resource"); 155 url_util::AddStandardScheme("test-shell-resource");
156
157 if (!file_system_root_.CreateUniqueTempDir()) {
158 LOG(WARNING) << "Failed to create a temp dir for the filesystem."
159 "FileSystem feature will be disabled.";
160 DCHECK(file_system_root_.path().empty());
161 }
162 } 156 }
163 157
164 TestShell::~TestShell() { 158 TestShell::~TestShell() {
165 delegate_->RevokeDragDrop(); 159 delegate_->RevokeDragDrop();
166 160
167 // DevTools frontend page is supposed to be navigated only once and 161 // DevTools frontend page is supposed to be navigated only once and
168 // loading another URL in that Page is an error. 162 // loading another URL in that Page is an error.
169 if (!dev_tools_client_.get()) { 163 if (!dev_tools_client_.get()) {
170 // Navigate to an empty page to fire all the destruction logic for the 164 // Navigate to an empty page to fire all the destruction logic for the
171 // current page. 165 // current page.
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path); 902 NPAPI::PluginList::Singleton()->DisablePlugin(plugin_info.path);
909 plugins->erase(plugins->begin() + i); 903 plugins->erase(plugins->begin() + i);
910 } 904 }
911 #endif 905 #endif
912 } 906 }
913 } 907 }
914 } 908 }
915 } 909 }
916 910
917 } // namespace webkit_glue 911 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698