| Index: third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
|
| index 5c77d9ee6aacc72c2ff05f885ed370fc90bd6c6a..f7896b9d371404689d2c66ea4a617c705e23c04e 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
|
| @@ -74,9 +74,18 @@ WebInspector.RequestPreviewView.prototype = {
|
| toolbar.appendToolbarItem(item);
|
| }
|
| this.innerView = this._previewView;
|
| + this._previewViewHandledForTest(this._previewView);
|
| }
|
| },
|
|
|
| + /**
|
| + * @param {!WebInspector.Widget} view
|
| + */
|
| + _previewViewHandledForTest: function(view) { },
|
| +
|
| + /**
|
| + * @return {!WebInspector.EmptyWidget}
|
| + */
|
| _createEmptyWidget: function()
|
| {
|
| return this._createMessageView(WebInspector.UIString("This request has no preview available."));
|
| @@ -102,13 +111,13 @@ WebInspector.RequestPreviewView.prototype = {
|
|
|
| /**
|
| * @param {?WebInspector.ParsedJSON} parsedJSON
|
| - * @return {?WebInspector.JSONView}
|
| + * @return {?WebInspector.SearchableView}
|
| */
|
| _jsonView: function(parsedJSON)
|
| {
|
| if (!parsedJSON || typeof parsedJSON.data !== "object")
|
| return null;
|
| - return new WebInspector.JSONView(/** @type {!WebInspector.ParsedJSON} */ (parsedJSON));
|
| + return WebInspector.JSONView.createSearchableView(/** @type {!WebInspector.ParsedJSON} */ (parsedJSON));
|
| },
|
|
|
| /**
|
|
|