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

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: 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
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..fe404e6566a61e704d1666b09ce40d8764742241
--- /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::StartDisablingIDMangling();
+}
+
+RoutingIDManglingDisabler::~RoutingIDManglingDisabler() {
+ RoutingIDIssuer::StopDisablingIDMangling();
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698