Chromium Code Reviews| Index: chrome/browser/profiles/profile_io_data.h |
| diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h |
| index 2f892ed9705340dff99fe79fe7e0f3f351b0146f..39169dd6dc058aaa8a0cacd4df1c71e403b86be0 100644 |
| --- a/chrome/browser/profiles/profile_io_data.h |
| +++ b/chrome/browser/profiles/profile_io_data.h |
| @@ -107,6 +107,10 @@ class ProfileIOData { |
| return &safe_browsing_enabled_; |
| } |
| + BooleanPrefMember* enable_metrics() const { |
| + return &enable_metrics_; |
| + } |
| + |
| net::TransportSecurityState* transport_security_state() const { |
| return transport_security_state_.get(); |
| } |
| @@ -114,6 +118,10 @@ class ProfileIOData { |
| chrome_browser_net::HttpServerPropertiesManager* |
| http_server_properties_manager() const; |
| + bool is_incognito() const { |
| + return is_incognito_; |
| + } |
| + |
| protected: |
| class AppRequestContext : public ChromeURLRequestContext { |
| public: |
| @@ -290,6 +298,7 @@ class ProfileIOData { |
| // Member variables which are pointed to by the various context objects. |
| mutable BooleanPrefMember enable_referrers_; |
| + mutable BooleanPrefMember enable_metrics_; |
| mutable BooleanPrefMember clear_local_state_on_exit_; |
| mutable BooleanPrefMember safe_browsing_enabled_; |
| // TODO(marja): Remove session_startup_pref_ if no longer needed. |
| @@ -333,6 +342,8 @@ class ProfileIOData { |
| // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| bool initialized_on_UI_thread_; |
| + mutable bool is_incognito_; |
|
battre
2012/04/27 09:44:35
why mutable?
SteveT
2012/04/27 14:17:47
Oops - that shouldn't be mutable anymore. Original
|
| + |
| DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| }; |