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

Side by Side Diff: chrome/browser/sessions/better_session_restore_browsertest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 7 #include <string>
6 8
7 #include "base/command_line.h" 9 #include "base/command_line.h"
8 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
10 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/macros.h"
11 #include "base/path_service.h" 14 #include "base/path_service.h"
12 #include "base/prefs/pref_service.h" 15 #include "base/prefs/pref_service.h"
13 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
17 #include "build/build_config.h"
14 #include "chrome/browser/background/background_mode_manager.h" 18 #include "chrome/browser/background/background_mode_manager.h"
15 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/content_settings/cookie_settings_factory.h" 20 #include "chrome/browser/content_settings/cookie_settings_factory.h"
17 #include "chrome/browser/defaults.h" 21 #include "chrome/browser/defaults.h"
18 #include "chrome/browser/infobars/infobar_service.h" 22 #include "chrome/browser/infobars/infobar_service.h"
19 #include "chrome/browser/lifetime/application_lifetime.h" 23 #include "chrome/browser/lifetime/application_lifetime.h"
20 #include "chrome/browser/prefs/session_startup_pref.h" 24 #include "chrome/browser/prefs/session_startup_pref.h"
21 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/profiles/profile_impl.h" 26 #include "chrome/browser/profiles/profile_impl.h"
23 #include "chrome/browser/profiles/profile_manager.h" 27 #include "chrome/browser/profiles/profile_manager.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 CookieSettingsFactory::GetForProfile(new_browser->profile()) 844 CookieSettingsFactory::GetForProfile(new_browser->profile())
841 ->SetDefaultCookieSetting(CONTENT_SETTING_SESSION_ONLY); 845 ->SetDefaultCookieSetting(CONTENT_SETTING_SESSION_ONLY);
842 // ... even if background mode is active. 846 // ... even if background mode is active.
843 EnableBackgroundMode(); 847 EnableBackgroundMode();
844 new_browser = QuitBrowserAndRestore(new_browser, true); 848 new_browser = QuitBrowserAndRestore(new_browser, true);
845 StoreDataWithPage(new_browser, "cookies.html"); 849 StoreDataWithPage(new_browser, "cookies.html");
846 DisableBackgroundMode(); 850 DisableBackgroundMode();
847 new_browser = QuitBrowserAndRestore(new_browser, true); 851 new_browser = QuitBrowserAndRestore(new_browser, true);
848 StoreDataWithPage(new_browser, "cookies.html"); 852 StoreDataWithPage(new_browser, "cookies.html");
849 } 853 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698