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

Unified Diff: webkit/tools/test_shell/test_shell_main.cc

Issue 27222: Chrome side to implement WebMimeRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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: webkit/tools/test_shell/test_shell_main.cc
===================================================================
--- webkit/tools/test_shell/test_shell_main.cc (revision 10468)
+++ webkit/tools/test_shell/test_shell_main.cc (working copy)
@@ -25,7 +25,6 @@
#include "net/http/http_cache.h"
#include "net/base/ssl_test_util.h"
#include "net/url_request/url_request_context.h"
-#include "webkit/glue/webkit_client_impl.h"
#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/window_open_disposition.h"
#include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
@@ -33,6 +32,7 @@
#include "webkit/tools/test_shell/test_shell_platform_delegate.h"
#include "webkit/tools/test_shell/test_shell_request_context.h"
#include "webkit/tools/test_shell/test_shell_switches.h"
+#include "webkit/tools/test_shell/test_shell_webkit_init.h"
#include "WebKit.h"
@@ -88,17 +88,13 @@
layout_test_mode,
enable_gp_fault_error_box);
- webkit_glue::WebKitClientImpl webkit_client_impl;
- WebKit::initialize(&webkit_client_impl);
+ // Initialize WebKit for this scope.
+ TestShellWebKitInit test_shell_webkit_init(layout_test_mode);
- // Set this early before we start using WebCore.
- webkit_glue::SetLayoutTestMode(layout_test_mode);
-
// Suppress abort message in v8 library in debugging mode.
// V8 calls abort() when it hits assertion errors.
- if (suppress_error_dialogs) {
+ if (suppress_error_dialogs)
platform.SuppressErrorReporting();
- }
if (parsed_command_line.HasSwitch(test_shell::kEnableTracing))
base::TraceLog::StartTracing();

Powered by Google App Engine
This is Rietveld 408576698