Skip to content

Commit

Permalink
Update docs/webui_explainer.md to refer to std::make_unique.
Browse files Browse the repository at this point in the history
Bug: 755727
Change-Id: I001537e46fa19ad521c1df58243fddbf4782e40b
Reviewed-on: https://chromium-review.googlesource.com/946123
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540558}
  • Loading branch information
jeremyroman authored and Commit Bot committed Mar 2, 2018
1 parent e0d8685 commit e0760a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/webui_explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class DonutsUI : public content::WebUIController {
content::WebUIDataSource::Add(source);

// Handles messages from JavaScript to C++ via chrome.send().
web_ui->AddMessageHandler(base::MakeUnique<OvenHandler>());
web_ui->AddMessageHandler(std::make_unique<OvenHandler>());
}
};
```
Expand Down

0 comments on commit e0760a4

Please sign in to comment.