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

Side by Side Diff: chrome/browser/ui/cocoa/cocoa_profile_test.mm

Issue 1662783002: Remove HostDesktopType from Browser::CreateParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-12
Patch Set: remove desktop_type_ in bookmark_bubble_sign_in_delegate 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 "chrome/browser/ui/cocoa/cocoa_profile_test.h" 5 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" 9 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void CocoaProfileTest::CloseBrowserWindow() { 90 void CocoaProfileTest::CloseBrowserWindow() {
91 // Check to make sure a window was actually created. 91 // Check to make sure a window was actually created.
92 DCHECK(browser_->window()); 92 DCHECK(browser_->window());
93 browser_->tab_strip_model()->CloseAllTabs(); 93 browser_->tab_strip_model()->CloseAllTabs();
94 chrome::CloseWindow(browser_.get()); 94 chrome::CloseWindow(browser_.get());
95 // |browser_| will be deleted by its BrowserWindowController. 95 // |browser_| will be deleted by its BrowserWindowController.
96 ignore_result(browser_.release()); 96 ignore_result(browser_.release());
97 } 97 }
98 98
99 Browser* CocoaProfileTest::CreateBrowser() { 99 Browser* CocoaProfileTest::CreateBrowser() {
100 return new Browser(Browser::CreateParams(profile(), 100 return new Browser(Browser::CreateParams(profile()));
101 chrome::GetActiveDesktop()));
102 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698