OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include <stddef.h> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" |
7 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "build/build_config.h" |
8 #include "chrome/browser/browser_shutdown.h" | 12 #include "chrome/browser/browser_shutdown.h" |
9 #include "chrome/browser/prefs/session_startup_pref.h" | 13 #include "chrome/browser/prefs/session_startup_pref.h" |
10 #include "chrome/browser/profiles/profile_io_data.h" | 14 #include "chrome/browser/profiles/profile_io_data.h" |
11 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 15 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
12 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
13 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/dom_storage_context.h" | 18 #include "content/public/browser/dom_storage_context.h" |
15 #include "content/public/browser/local_storage_usage_info.h" | 19 #include "content/public/browser/local_storage_usage_info.h" |
16 #include "content/public/browser/storage_partition.h" | 20 #include "content/public/browser/storage_partition.h" |
17 #include "net/cookies/cookie_monster.h" | 21 #include "net/cookies/cookie_monster.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 *base::CommandLine::ForCurrentProcess(), profile).type; | 161 *base::CommandLine::ForCurrentProcess(), profile).type; |
158 #endif | 162 #endif |
159 | 163 |
160 scoped_refptr<SessionDataDeleter> deleter( | 164 scoped_refptr<SessionDataDeleter> deleter( |
161 new SessionDataDeleter(profile->GetSpecialStoragePolicy(), | 165 new SessionDataDeleter(profile->GetSpecialStoragePolicy(), |
162 startup_pref_type == SessionStartupPref::LAST)); | 166 startup_pref_type == SessionStartupPref::LAST)); |
163 deleter->Run( | 167 deleter->Run( |
164 Profile::GetDefaultStoragePartition(profile), | 168 Profile::GetDefaultStoragePartition(profile), |
165 ProfileIOData::FromResourceContext(profile->GetResourceContext())); | 169 ProfileIOData::FromResourceContext(profile->GetResourceContext())); |
166 } | 170 } |
OLD | NEW |