Index: chrome/browser/profiles/profile_manager.h |
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h |
index 05babfa8d51a1611f99e5a01161dcd78a516b18f..326357989227eda78b2723f95040ba16e7642287 100644 |
--- a/chrome/browser/profiles/profile_manager.h |
+++ b/chrome/browser/profiles/profile_manager.h |
@@ -54,6 +54,13 @@ class ProfileManager : public base::NonThreadSafe, |
// The profile used can be overridden by using --login-profile on cros. |
Profile* GetDefaultProfile(const base::FilePath& user_data_dir); |
+ // DEPRECATED: Temporary measure to ensure that GetDefaultProfile() is not |
sail
2013/05/23 18:20:56
can you add a bug # that tracks removing this?
stevenjb
2013/05/23 18:28:15
Done. (Added above the first DEPRECATED function)
|
+ // called before CreateProfile() is called in chrome_browser_main.cc. |
+ // Note: This needs to be called with 'false' first (early in |
+ // ChromeBrowserMainParts), otherwise it will assume 'true' so as not to |
+ // affect any tests. |
+ static void SetAllowGetDefaultProfile(bool allow); |
+ |
// DEPRECATED: DO NOT USE unless in ChromeOS. |
// Same as instance method but provides the default user_data_dir as well. |
static Profile* GetDefaultProfile(); |