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

Unified Diff: chrome/browser/extensions/api/settings_private/settings_private_api.cc

Issue 2430463002: MD Settings: tweak some chrome.settingsPrivate method names (Closed)
Patch Set: histograms.xml Created 4 years, 2 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/extensions/api/settings_private/settings_private_api.cc
diff --git a/chrome/browser/extensions/api/settings_private/settings_private_api.cc b/chrome/browser/extensions/api/settings_private/settings_private_api.cc
index e2b23743721b6e059043be8892035ab784fec91e..a73f78f8d83ec10f2d3534241ad4330aad743ef3 100644
--- a/chrome/browser/extensions/api/settings_private/settings_private_api.cc
+++ b/chrome/browser/extensions/api/settings_private/settings_private_api.cc
@@ -106,37 +106,36 @@ ExtensionFunction::ResponseAction SettingsPrivateGetPrefFunction::Run() {
}
////////////////////////////////////////////////////////////////////////////////
-// SettingsPrivateGetDefaultZoomPercentFunction
+// SettingsPrivateGetDefaultZoomFunction
////////////////////////////////////////////////////////////////////////////////
-SettingsPrivateGetDefaultZoomPercentFunction::
- ~SettingsPrivateGetDefaultZoomPercentFunction() {
+SettingsPrivateGetDefaultZoomFunction::
+ ~SettingsPrivateGetDefaultZoomFunction() {
}
ExtensionFunction::ResponseAction
- SettingsPrivateGetDefaultZoomPercentFunction::Run() {
+ SettingsPrivateGetDefaultZoomFunction::Run() {
SettingsPrivateDelegate* delegate =
SettingsPrivateDelegateFactory::GetForBrowserContext(browser_context());
if (delegate == nullptr)
return RespondNow(Error(kDelegateIsNull));
else
- return RespondNow(OneArgument(delegate->GetDefaultZoomPercent()));
+ return RespondNow(OneArgument(delegate->GetDefaultZoom()));
}
////////////////////////////////////////////////////////////////////////////////
-// SettingsPrivateSetDefaultZoomPercentFunction
+// SettingsPrivateSetDefaultZoomFunction
////////////////////////////////////////////////////////////////////////////////
-SettingsPrivateSetDefaultZoomPercentFunction::
- ~SettingsPrivateSetDefaultZoomPercentFunction() {
+SettingsPrivateSetDefaultZoomFunction::
+ ~SettingsPrivateSetDefaultZoomFunction() {
}
ExtensionFunction::ResponseAction
- SettingsPrivateSetDefaultZoomPercentFunction::Run() {
- std::unique_ptr<api::settings_private::SetDefaultZoomPercent::Params>
- parameters =
- api::settings_private::SetDefaultZoomPercent::Params::Create(*args_);
+ SettingsPrivateSetDefaultZoomFunction::Run() {
+ std::unique_ptr<api::settings_private::SetDefaultZoom::Params> parameters =
+ api::settings_private::SetDefaultZoom::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(parameters.get());
SettingsPrivateDelegate* delegate =
@@ -144,7 +143,7 @@ ExtensionFunction::ResponseAction
if (delegate == nullptr)
return RespondNow(Error(kDelegateIsNull));
- delegate->SetDefaultZoomPercent(parameters->percent);
+ delegate->SetDefaultZoom(parameters->zoom);
return RespondNow(
OneArgument(base::MakeUnique<base::FundamentalValue>(true)));
}

Powered by Google App Engine
This is Rietveld 408576698