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

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 } 605 }
606 606
607 const std::string& BrowserProcessImpl::GetApplicationLocale() { 607 const std::string& BrowserProcessImpl::GetApplicationLocale() {
608 DCHECK(!locale_.empty()); 608 DCHECK(!locale_.empty());
609 return locale_; 609 return locale_;
610 } 610 }
611 611
612 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { 612 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) {
613 locale_ = locale; 613 locale_ = locale;
614 extension_l10n_util::SetProcessLocale(locale); 614 extension_l10n_util::SetProcessLocale(locale);
615 static_cast<chrome::ChromeContentBrowserClient*>( 615 chrome::ChromeContentBrowserClient::SetApplicationLocale(locale);
616 content::GetContentClient()->browser())->SetApplicationLocale(locale);
617 } 616 }
618 617
619 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { 618 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() {
620 return download_status_updater_.get(); 619 return download_status_updater_.get();
621 } 620 }
622 621
623 BookmarkPromptController* BrowserProcessImpl::bookmark_prompt_controller() { 622 BookmarkPromptController* BrowserProcessImpl::bookmark_prompt_controller() {
624 #if defined(OS_ANDROID) 623 #if defined(OS_ANDROID)
625 return NULL; 624 return NULL;
626 #else 625 #else
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 } 1054 }
1056 1055
1057 void BrowserProcessImpl::OnAutoupdateTimer() { 1056 void BrowserProcessImpl::OnAutoupdateTimer() {
1058 if (CanAutorestartForUpdate()) { 1057 if (CanAutorestartForUpdate()) {
1059 DLOG(WARNING) << "Detected update. Restarting browser."; 1058 DLOG(WARNING) << "Detected update. Restarting browser.";
1060 RestartBackgroundInstance(); 1059 RestartBackgroundInstance();
1061 } 1060 }
1062 } 1061 }
1063 1062
1064 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 1063 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/autofill/risk/fingerprint_browsertest.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698