| Index: public/web/WebRuntimeFeatures.h
|
| diff --git a/public/web/WebRuntimeFeatures.h b/public/web/WebRuntimeFeatures.h
|
| index 14175377dcab4dd9ccc8fdd3d9b63a14d1cbaedd..a3d58321368abcaf9c7e60704df8e8642d8808e1 100644
|
| --- a/public/web/WebRuntimeFeatures.h
|
| +++ b/public/web/WebRuntimeFeatures.h
|
| @@ -34,6 +34,8 @@
|
| #include "../platform/WebCommon.h"
|
| #include "../platform/WebString.h"
|
|
|
| +#include <string>
|
| +
|
| namespace blink {
|
|
|
| // This class is used to enable runtime features of Blink.
|
| @@ -48,6 +50,11 @@ public:
|
|
|
| // Enables a feature by its string identifier from
|
| // RuntimeEnabledFeatures.in.
|
| + // Note: We use std::string instead of WebString because this API can
|
| + // be called before blink::initalize(). We can't create WebString objects
|
| + // before blink::initialize().
|
| + BLINK_EXPORT static void enableFeatureFromString(const std::string& name, bool enable);
|
| + // TODO(bashi): Remove.
|
| BLINK_EXPORT static void enableFeatureFromString(const WebString& name, bool enable);
|
|
|
| BLINK_EXPORT static void enableApplicationCache(bool);
|
|
|