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

Unified Diff: chrome/browser/budget_service/budget_manager.cc

Issue 2265173002: Created Mojo BudgetService implementation in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_service
Patch Set: Remove use of local variable and call GetCost directly. Created 4 years, 4 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: chrome/browser/budget_service/budget_manager.cc
diff --git a/chrome/browser/budget_service/budget_manager.cc b/chrome/browser/budget_service/budget_manager.cc
index 61e7445d263becc8d4a9f4ef330cbd848a257ab8..d11b409ae03ee723d3c1673df91cd8353b9fa694 100644
--- a/chrome/browser/budget_service/budget_manager.cc
+++ b/chrome/browser/budget_service/budget_manager.cc
@@ -23,6 +23,7 @@
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "content/public/browser/browser_thread.h"
+#include "third_party/WebKit/public/platform/modules/budget_service/budget_service.mojom.h"
using content::BrowserThread;
@@ -102,9 +103,9 @@ void BudgetManager::RegisterProfilePrefs(
}
// static
-double BudgetManager::GetCost(CostType type) {
+double BudgetManager::GetCost(blink::mojom::BudgetOperationType type) {
switch (type) {
- case CostType::SILENT_PUSH:
+ case blink::mojom::BudgetOperationType::SILENT_PUSH:
return 2.0;
// No default case.
}
« no previous file with comments | « chrome/browser/budget_service/budget_manager.h ('k') | chrome/browser/budget_service/budget_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698