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

Side by Side Diff: chrome/browser/sessions/session_data_deleter.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/restore_on_startup_policy_handler.h ('k') | chrome/browser/sessions/session_restore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698