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

Unified Diff: content/browser/devtools/devtools_power_handler.cc

Issue 336233004: [Refactor] Remove hardcoded AccuracyLevel literal from DevToolsPowerHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_power_handler.cc
diff --git a/content/browser/devtools/devtools_power_handler.cc b/content/browser/devtools/devtools_power_handler.cc
index d71482ff9b0c955ba5e30572dc1408c4e7747b68..4a72296967cb320ab190d713569d225d6ac418f6 100644
--- a/content/browser/devtools/devtools_power_handler.cc
+++ b/content/browser/devtools/devtools_power_handler.cc
@@ -21,9 +21,7 @@ DevToolsPowerHandler::DevToolsPowerHandler() {
RegisterCommandHandler(devtools::Power::canProfilePower::kName,
base::Bind(&DevToolsPowerHandler::OnCanProfilePower,
base::Unretained(this)));
- // TODO(vivekg): Replace hardcoded "Power.getAccuracyLevel" with
- // devtools::Power::getAccuracyLevel::kName once crrev.com/336713005 lands
- RegisterCommandHandler("Power.getAccuracyLevel" ,
+ RegisterCommandHandler(devtools::Power::getAccuracyLevel::kName,
base::Bind(&DevToolsPowerHandler::OnGetAccuracyLevel,
base::Unretained(this)));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698