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

Side by Side Diff: chrome/browser/show_options_url.cc

Issue 5104002: Cleanup: Include browser.h -> ui/browser.h [Part 4]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/show_options_url.h" 5 #include "chrome/browser/show_options_url.h"
6 6
7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/browser_window.h"
9 #include "chrome/browser/profile.h" 7 #include "chrome/browser/profile.h"
8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h"
10 10
11 namespace browser { 11 namespace browser {
12 12
13 void ShowOptionsURL(Profile* profile, const GURL& url) { 13 void ShowOptionsURL(Profile* profile, const GURL& url) {
14 // We open a new browser window so the Options dialog doesn't get lost behind 14 // We open a new browser window so the Options dialog doesn't get lost behind
15 // other windows. 15 // other windows.
16 Browser* browser = Browser::Create(profile); 16 Browser* browser = Browser::Create(profile);
17 browser->AddSelectedTabWithURL(url, PageTransition::LINK); 17 browser->AddSelectedTabWithURL(url, PageTransition::LINK);
18 browser->window()->Show(); 18 browser->window()->Show();
19 } 19 }
20 20
21 } // namespace browser 21 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_types.cc ('k') | chrome/browser/sync/profile_sync_service_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698