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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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> 5 #include <stddef.h>
6 6
7 #include <list> 7 #include <list>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/prefs/pref_service.h"
12 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/chrome_notification_types.h" 12 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/defaults.h" 13 #include "chrome/browser/defaults.h"
15 #include "chrome/browser/prefs/session_startup_pref.h" 14 #include "chrome/browser/prefs/session_startup_pref.h"
16 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/browser_list.h" 16 #include "chrome/browser/ui/browser_list.h"
18 #include "chrome/browser/ui/browser_window.h" 17 #include "chrome/browser/ui/browser_window.h"
19 #include "chrome/browser/ui/host_desktop.h" 18 #include "chrome/browser/ui/host_desktop.h"
20 #include "chrome/common/chrome_paths.h" 19 #include "chrome/common/chrome_paths.h"
21 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
22 #include "chrome/test/base/in_process_browser_test.h" 21 #include "chrome/test/base/in_process_browser_test.h"
22 #include "components/prefs/pref_service.h"
23 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" 23 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
24 #include "content/public/browser/notification_service.h" 24 #include "content/public/browser/notification_service.h"
25 #include "content/public/test/test_utils.h" 25 #include "content/public/test/test_utils.h"
26 26
27 namespace { 27 namespace {
28 const char* test_app_popup_name1 = "TestApp1"; 28 const char* test_app_popup_name1 = "TestApp1";
29 const char* test_app_popup_name2 = "TestApp2"; 29 const char* test_app_popup_name2 = "TestApp2";
30 } 30 }
31 31
32 class SessionRestoreTestChromeOS : public InProcessBrowserTest { 32 class SessionRestoreTestChromeOS : public InProcessBrowserTest {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 size_t total_count = 0; 157 size_t total_count = 0;
158 size_t maximized_count = 0; 158 size_t maximized_count = 0;
159 for (auto* browser : *BrowserList::GetInstance()) { 159 for (auto* browser : *BrowserList::GetInstance()) {
160 ++total_count; 160 ++total_count;
161 if (browser->window()->IsMaximized()) 161 if (browser->window()->IsMaximized())
162 ++maximized_count; 162 ++maximized_count;
163 } 163 }
164 EXPECT_EQ(4u, total_count); 164 EXPECT_EQ(4u, total_count);
165 EXPECT_EQ(2u, maximized_count); 165 EXPECT_EQ(2u, maximized_count);
166 } 166 }
OLDNEW
« no previous file with comments | « chrome/browser/sessions/restore_on_startup_policy_handler_unittest.cc ('k') | chrome/browser/shell_integration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698