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 a842757abb745a2b3878aed7bd1c4ab1a959409b..0b0a95396ed4f321140da5c8882ea00c78fd6a56 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" |
@@ -83,9 +84,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()); |