Description[DevTools] migrate NetworkAgent to new style
Replace in header:
void ([a-zA-Z]+)\(\s*ErrorString\*(?: error(?:String)?)?,? ?
Response \1(
Replace in implementation:
void ([a-zA-Z]+)::([a-zA-Z]+)\(\s*ErrorString\*(?: error(?:String)?)?,? ?
Response \1::\2(
Replace in header and implementation:
const (?:protocol::)?Maybe<([^>]+)>&
Maybe<\1>
Remove in implementation:
&error,? ?
Replace in implementation:
\*error(?:String)? = ("[^"]+");\s+return;
return Response::Error(\1);
Replace in implementation:
sendFailure\(("[^"]+")\)
sendFailure(Response::Error(\1))
Added return Response::OK at the end of functions.
BUG=none
R=dgozman@chromium.org
Committed: https://crrev.com/f94799b234e478daa578dd91458b6908a758dfb6
Cr-Commit-Position: refs/heads/master@{#429214}
Patch Set 1 #
Total comments: 6
Patch Set 2 : rebased #Patch Set 3 : addressed comments #
Dependent Patchsets: Messages
Total messages: 9 (3 generated)
|