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

Unified Diff: content/public/test/routing_id_mangling_disabler.cc

Issue 643733002: Add RoutingIDIssuer to ensure the correctness of ID to be routed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 6 years, 2 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 | « content/public/test/routing_id_mangling_disabler.h ('k') | content/renderer/dom_serializer_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/routing_id_mangling_disabler.cc
diff --git a/content/public/test/routing_id_mangling_disabler.cc b/content/public/test/routing_id_mangling_disabler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b1e83a127a15fdf73ab8ea423423bb68767afef7
--- /dev/null
+++ b/content/public/test/routing_id_mangling_disabler.cc
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/test/routing_id_mangling_disabler.h"
+
+#include "content/browser/renderer_host/routing_id_issuer.h"
+
+namespace content {
+
+RoutingIDManglingDisabler::RoutingIDManglingDisabler() {
+ RoutingIDIssuer::DisableIDMangling();
+}
+
+RoutingIDManglingDisabler::~RoutingIDManglingDisabler() {
+ RoutingIDIssuer::EnableIDMangling();
+}
+
+} // namespace content
« no previous file with comments | « content/public/test/routing_id_mangling_disabler.h ('k') | content/renderer/dom_serializer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698