| Index: third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp b/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| index dc752ebd8d3d29261ae6d71318f9b99a5f3fdeb4..5482e92ca76be424f6a670383041b077d9a05008 100644
|
| --- a/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/IdentifiersFactory.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/inspector/InspectedFrames.h"
|
| #include "core/loader/DocumentLoader.h"
|
| +#include "public/platform/Platform.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/text/StringBuilder.h"
|
|
|
| @@ -49,10 +50,11 @@ String& processIdPrefix()
|
|
|
|
|
| // static
|
| -void IdentifiersFactory::setProcessId(long processId)
|
| +void IdentifiersFactory::initialize()
|
| {
|
| StringBuilder builder;
|
| - builder.appendNumber(processId);
|
| +
|
| + builder.appendNumber(Platform::current()->getUniqueIdForProcess());
|
| builder.append('.');
|
| ASSERT(processIdPrefix().isEmpty() || processIdPrefix() == builder.toString());
|
| processIdPrefix() = builder.toString();
|
| @@ -108,7 +110,8 @@ DocumentLoader* IdentifiersFactory::loaderById(InspectedFrames* inspectedFrames,
|
| // static
|
| String IdentifiersFactory::addProcessIdPrefixTo(int id)
|
| {
|
| - ASSERT(!processIdPrefix().isEmpty());
|
| + if (processIdPrefix().isEmpty())
|
| + initialize();
|
| return processIdPrefix() + String::number(id);
|
| }
|
|
|
|
|