Index: webkit/database/database_tracker.h |
diff --git a/webkit/database/database_tracker.h b/webkit/database/database_tracker.h |
index bbc308adfc33be0487f6c32931e201272da9816c..9279120a270014acc61dac211717cc3417d690ac 100644 |
--- a/webkit/database/database_tracker.h |
+++ b/webkit/database/database_tracker.h |
@@ -88,7 +88,9 @@ class DatabaseTracker |
virtual ~Observer() {} |
}; |
- DatabaseTracker(const FilePath& profile_path, bool is_incognito, |
+ DatabaseTracker(const FilePath& profile_path, |
+ bool is_incognito, |
+ bool clear_local_state_on_exit, |
quota::SpecialStoragePolicy* special_storage_policy, |
quota::QuotaManagerProxy* quota_manager_proxy, |
base::MessageLoopProxy* db_tracker_thread); |
@@ -161,7 +163,7 @@ class DatabaseTracker |
// Deletes the directory that stores all DBs in incognito mode, if it exists. |
void DeleteIncognitoDBDirectory(); |
- static void ClearLocalState(const FilePath& profile_path); |
+ void SetClearLocalStateOnExit(bool clear_local_state_on_exit); |
private: |
friend class base::RefCountedThreadSafe<DatabaseTracker>; |
@@ -228,6 +230,7 @@ class DatabaseTracker |
bool is_initialized_; |
const bool is_incognito_; |
+ bool clear_local_state_on_exit_; |
bool shutting_down_; |
const FilePath profile_path_; |
const FilePath db_dir_; |