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

Side by Side Diff: chrome/test/base/testing_profile.h

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 unified diff | Download patch
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 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 virtual void SetExitType(ExitType exit_type) OVERRIDE {} 250 virtual void SetExitType(ExitType exit_type) OVERRIDE {}
251 virtual ExitType GetLastSessionExitType() OVERRIDE; 251 virtual ExitType GetLastSessionExitType() OVERRIDE;
252 #if defined(OS_CHROMEOS) 252 #if defined(OS_CHROMEOS)
253 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE { 253 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE {
254 } 254 }
255 virtual void InitChromeOSPreferences() OVERRIDE { 255 virtual void InitChromeOSPreferences() OVERRIDE {
256 } 256 }
257 virtual void ChangeAppLocale(const std::string&, 257 virtual void ChangeAppLocale(const std::string&,
258 AppLocaleChangedVia) OVERRIDE { 258 AppLocaleChangedVia) OVERRIDE {
259 } 259 }
260 virtual void MarkCreated() OVERRIDE {
261 }
260 virtual void OnLogin() OVERRIDE { 262 virtual void OnLogin() OVERRIDE {
261 } 263 }
264 virtual void RespectLocalePreference() OVERRIDE {
265 }
266 virtual void SetGPlusProfileLocale(const std::string&) OVERRIDE {
sky 2013/08/23 16:02:56 nit: style guide says always name parameters (257/
Alexander Alekseev 2013/09/06 19:52:08 Done.
267 }
262 #endif // defined(OS_CHROMEOS) 268 #endif // defined(OS_CHROMEOS)
263 269
264 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; 270 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE;
265 271
266 // Schedules a task on the history backend and runs a nested loop until the 272 // Schedules a task on the history backend and runs a nested loop until the
267 // task is processed. This has the effect of blocking the caller until the 273 // task is processed. This has the effect of blocking the caller until the
268 // history service processes all pending requests. 274 // history service processes all pending requests.
269 void BlockUntilHistoryProcessesPendingRequests(); 275 void BlockUntilHistoryProcessesPendingRequests();
270 276
271 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 277 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // scoped_ptr<>. 346 // scoped_ptr<>.
341 content::MockResourceContext* resource_context_; 347 content::MockResourceContext* resource_context_;
342 348
343 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_; 349 scoped_ptr<policy::ProfilePolicyConnector> profile_policy_connector_;
344 350
345 // Weak pointer to a delegate for indicating that a profile was created. 351 // Weak pointer to a delegate for indicating that a profile was created.
346 Delegate* delegate_; 352 Delegate* delegate_;
347 }; 353 };
348 354
349 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 355 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698