Chromium Code Reviews| Index: Source/web/WebKit.cpp |
| diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp |
| index 543e34b2bfd25b726021c5eb8e7bb9069fe05e03..457f5a557abfee653aceabdf81491c781b7af6c8 100644 |
| --- a/Source/web/WebKit.cpp |
| +++ b/Source/web/WebKit.cpp |
| @@ -143,6 +143,11 @@ static double monotonicallyIncreasingTimeFunction() |
| return Platform::current()->monotonicallyIncreasingTime(); |
| } |
| +static void histogramEnumerationFunction(const char* name, int sample, int boundaryValue) |
| +{ |
| + return Platform::current()->histogramEnumeration(name, sample, boundaryValue); |
|
Chris Evans
2015/04/02 15:53:01
Nit: not sure what the style guide says about usin
haraken
2015/04/02 23:31:31
Done.
|
| +} |
| + |
| static void cryptographicallyRandomValues(unsigned char* buffer, size_t length) |
| { |
| Platform::current()->cryptographicallyRandomValues(buffer, length); |
| @@ -162,7 +167,7 @@ void initializeWithoutV8(Platform* platform) |
| Platform::initialize(platform); |
| WTF::setRandomSource(cryptographicallyRandomValues); |
| - WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction); |
| + WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, histogramEnumerationFunction); |
| WTF::initializeMainThread(callOnMainThreadFunction); |
| Heap::init(); |