OLD | NEW |
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/browser_mac.h" | 5 #include "chrome/browser/ui/browser_mac.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/host_desktop.h" | 10 #include "ui/gfx/host_desktop_type.h" |
11 | 11 |
12 namespace chrome { | 12 namespace chrome { |
13 | 13 |
14 void OpenAboutWindow(Profile* profile) { | 14 void OpenAboutWindow(Profile* profile) { |
15 Browser* browser = | 15 Browser* browser = |
16 new Browser(Browser::CreateParams(profile, ui::HOST_DESKTOP_TYPE_NATIVE)); | 16 new Browser(Browser::CreateParams(profile, ui::HOST_DESKTOP_TYPE_NATIVE)); |
17 ShowAboutChrome(browser); | 17 ShowAboutChrome(browser); |
18 browser->window()->Show(); | 18 browser->window()->Show(); |
19 } | 19 } |
20 | 20 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 75 } |
76 | 76 |
77 void OpenExtensionsWindow(Profile* profile) { | 77 void OpenExtensionsWindow(Profile* profile) { |
78 Browser* browser = | 78 Browser* browser = |
79 new Browser(Browser::CreateParams(profile, ui::HOST_DESKTOP_TYPE_NATIVE)); | 79 new Browser(Browser::CreateParams(profile, ui::HOST_DESKTOP_TYPE_NATIVE)); |
80 ShowExtensions(browser, std::string()); | 80 ShowExtensions(browser, std::string()); |
81 browser->window()->Show(); | 81 browser->window()->Show(); |
82 } | 82 } |
83 | 83 |
84 } // namespace chrome | 84 } // namespace chrome |
OLD | NEW |