Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 1916703002: Prepare for move-only PassOwnPtr in the remaining directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@core1
Patch Set: Merge with trunk. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index eda50b279fc00646a2d29a693b6c00ddbc567055..5a9f339ae300f06492a30de363f522829599198d 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -332,7 +332,7 @@ void InspectorOverlay::setInspectMode(InspectorDOMAgent::SearchMode searchMode,
scheduleUpdate();
if (searchMode != InspectorDOMAgent::NotSearching) {
- m_inspectModeHighlightConfig = highlightConfig;
+ m_inspectModeHighlightConfig = std::move(highlightConfig);
} else {
m_hoveredNodeForInspectMode.clear();
hideHighlight();
@@ -354,7 +354,7 @@ void InspectorOverlay::setInspectedNode(Node* node)
void InspectorOverlay::highlightQuad(PassOwnPtr<FloatQuad> quad, const InspectorHighlightConfig& highlightConfig)
{
m_quadHighlightConfig = highlightConfig;
- m_highlightQuad = quad;
+ m_highlightQuad = std::move(quad);
m_omitTooltip = false;
scheduleUpdate();
}
@@ -556,7 +556,7 @@ void InspectorOverlay::evaluateInOverlay(const String& method, PassOwnPtr<protoc
ScriptForbiddenScope::AllowUserAgentScript allowScript;
OwnPtr<protocol::ListValue> command = protocol::ListValue::create();
command->pushValue(protocol::StringValue::create(method));
- command->pushValue(argument);
+ command->pushValue(std::move(argument));
toLocalFrame(overlayPage()->mainFrame())->script().executeScriptInMainWorld("dispatch(" + command->toJSONString() + ")", ScriptController::ExecuteScriptWhenScriptsDisabled);
}
« no previous file with comments | « third_party/WebKit/Source/platform/threading/DEPS ('k') | third_party/WebKit/Source/web/LocalFileSystemClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698