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

Unified Diff: net/data/proxy_resolver_v8_tracing_unittest/error_on_load.js

Issue 1126513002: Add ProxyResolverFactoryV8Tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-proxy-refactor
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | net/proxy/mojo_proxy_resolver_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/proxy_resolver_v8_tracing_unittest/error_on_load.js
diff --git a/extensions/renderer/injection_host.cc b/net/data/proxy_resolver_v8_tracing_unittest/error_on_load.js
similarity index 50%
copy from extensions/renderer/injection_host.cc
copy to net/data/proxy_resolver_v8_tracing_unittest/error_on_load.js
index 30e8679de88b42f75d0f92a7cd9cc6fe165750e2..2379bbfe102fc180f40c8b5800c67c66e56c59ae 100644
--- a/extensions/renderer/injection_host.cc
+++ b/net/data/proxy_resolver_v8_tracing_unittest/error_on_load.js
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "extensions/renderer/injection_host.h"
+alert('Prepare to DIE!');
+var x = null;
+return x.split('-'); // Throws exception.
-InjectionHost::InjectionHost(const HostID& host_id) :
- id_(host_id) {
-}
-
-InjectionHost::~InjectionHost() {
+function FindProxyForURL(url, host) {
+ return "PROXY i-approve-this-message:42";
}
« no previous file with comments | « no previous file | net/proxy/mojo_proxy_resolver_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698