Index: content/test/test_render_frame_host.cc |
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc |
index 932dbf7fed8589e28d7ee91d086cd3953067cc3c..139f4500d35401caa24eee687ba1c04251fad134 100644 |
--- a/content/test/test_render_frame_host.cc |
+++ b/content/test/test_render_frame_host.cc |
@@ -4,6 +4,7 @@ |
#include "content/test/test_render_frame_host.h" |
+#include "base/guid.h" |
#include "content/browser/frame_host/frame_tree.h" |
#include "content/browser/frame_host/navigation_handle_impl.h" |
#include "content/browser/frame_host/navigation_request.h" |
@@ -82,9 +83,10 @@ void TestRenderFrameHost::InitializeRenderFrameIfNeeded() { |
TestRenderFrameHost* TestRenderFrameHost::AppendChild( |
const std::string& frame_name) { |
+ std::string frame_unique_name = base::GenerateGUID(); |
OnCreateChildFrame(GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::Document, frame_name, |
- blink::WebSandboxFlags::None, |
+ frame_unique_name, blink::WebSandboxFlags::None, |
blink::WebFrameOwnerProperties()); |
return static_cast<TestRenderFrameHost*>( |
child_creation_observer_.last_created_frame()); |