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

Unified Diff: content/shell/renderer/test_runner/mock_web_user_media_client.cc

Issue 566833002: Update WebTask in chromium c++ style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved build error Created 6 years, 3 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: content/shell/renderer/test_runner/mock_web_user_media_client.cc
diff --git a/content/shell/renderer/test_runner/mock_web_user_media_client.cc b/content/shell/renderer/test_runner/mock_web_user_media_client.cc
index 8c4d10546d1dc7fc384fe506dbf69765526cb15a..10cc4de1aa0495eafe61e8bcbf1aed769e8a096d 100644
--- a/content/shell/renderer/test_runner/mock_web_user_media_client.cc
+++ b/content/shell/renderer/test_runner/mock_web_user_media_client.cc
@@ -41,9 +41,7 @@ class UserMediaRequestTask : public WebMethodTask<MockWebUserMediaClient> {
DCHECK(!result_.isNull());
}
- virtual void runIfValid() OVERRIDE {
- request_.requestSucceeded(result_);
- }
+ virtual void RunIfValid() OVERRIDE { request_.requestSucceeded(result_); }
private:
WebUserMediaRequest request_;
@@ -60,7 +58,7 @@ class UserMediaRequestConstraintFailedTask
request_(request),
constraint_(constraint) {}
- virtual void runIfValid() OVERRIDE {
+ virtual void RunIfValid() OVERRIDE {
request_.requestFailedConstraint(constraint_);
}
@@ -77,9 +75,7 @@ class UserMediaRequestPermissionDeniedTask
: WebMethodTask<MockWebUserMediaClient>(object),
request_(request) {}
- virtual void runIfValid() OVERRIDE {
- request_.requestFailed();
- }
+ virtual void RunIfValid() OVERRIDE { request_.requestFailed(); }
private:
WebUserMediaRequest request_;
@@ -94,9 +90,7 @@ class MediaDevicesRequestTask : public WebMethodTask<MockWebUserMediaClient> {
request_(request),
result_(result) {}
- virtual void runIfValid() OVERRIDE {
- request_.requestSucceeded(result_);
- }
+ virtual void RunIfValid() OVERRIDE { request_.requestSucceeded(result_); }
private:
WebMediaDevicesRequest request_;

Powered by Google App Engine
This is Rietveld 408576698