Skip to content

Commit

Permalink
Change methods to be const
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Sep 15, 2022
1 parent 6bb8ea6 commit 68b8c55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_app.cc
Expand Up @@ -1040,7 +1040,7 @@ std::string App::GetLocale() {
return g_browser_process->GetApplicationLocale();
}

std::string App::GetSystemLocale() {
std::string App::GetSystemLocale() const {
return static_cast<BrowserProcessImpl*>(g_browser_process)->GetSystemLocale();
}

Expand Down
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_app.h
Expand Up @@ -191,7 +191,7 @@ class App : public ElectronBrowserClient::Delegate,
void SetDesktopName(const std::string& desktop_name);
std::string GetLocale();
std::string GetLocaleCountryCode();
std::string GetSystemLocale();
std::string GetSystemLocale() const;
void OnSecondInstance(const base::CommandLine& cmd,
const base::FilePath& cwd,
const std::vector<const uint8_t> additional_data);
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/browser_process_impl.cc
Expand Up @@ -305,7 +305,7 @@ const std::string& BrowserProcessImpl::GetApplicationLocale() {
return locale_;
}

const std::string& BrowserProcessImpl::GetSystemLocale() {
const std::string& BrowserProcessImpl::GetSystemLocale() const {
return system_locale_;
}

Expand Down
2 changes: 1 addition & 1 deletion shell/browser/browser_process_impl.h
Expand Up @@ -102,7 +102,7 @@ class BrowserProcessImpl : public BrowserProcess {
void SetApplicationLocale(const std::string& locale) override;
void SetSystemLocale(const std::string& locale);
const std::string& GetApplicationLocale() override;
const std::string& GetSystemLocale();
const std::string& GetSystemLocale() const;
printing::PrintJobManager* print_job_manager() override;
StartupData* startup_data() override;

Expand Down

0 comments on commit 68b8c55

Please sign in to comment.