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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 23095006: If user profile doesn't contain language setting, default to his Google account settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix shared build. Created 7 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/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 7f42c5d3d19ff5dc6aae4feddc243c4658442f24..1ad17a1ed400fc89e2f7997ae38cbab859d93891 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -405,8 +405,17 @@ void OffTheRecordProfileImpl::ChangeAppLocale(const std::string& locale,
AppLocaleChangedVia) {
}
+void OffTheRecordProfileImpl::MarkCreated() {
+}
+
void OffTheRecordProfileImpl::OnLogin() {
}
+
+void OffTheRecordProfileImpl::RespectLocalePreference() {
+}
+
+void OffTheRecordProfileImpl::SetGPlusProfileLocale(const std::string&) {
+}
#endif // defined(OS_CHROMEOS)
PrefProxyConfigTracker* OffTheRecordProfileImpl::GetProxyConfigTracker() {
@@ -451,6 +460,13 @@ class GuestSessionProfile : public OffTheRecordProfileImpl {
chromeos_preferences_->Init(static_cast<PrefServiceSyncable*>(GetPrefs()));
}
+ virtual std::string GetGPlusLocale() const OVERRIDE {
+ return std::string();
+ }
+
+ virtual void SetGPlusProfileLocale(const std::string&) OVERRIDE {
+ }
+
private:
// The guest user should be able to customize Chrome OS preferences.
scoped_ptr<chromeos::Preferences> chromeos_preferences_;

Powered by Google App Engine
This is Rietveld 408576698