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

Side by Side Diff: chrome/browser/background_contents_service.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
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/browser_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/background_contents_service.h" 5 #include "chrome/browser/background_contents_service.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/browser.h"
13 #include "chrome/browser/browser_list.h"
14 #include "chrome/browser/extensions/extensions_service.h" 12 #include "chrome/browser/extensions/extensions_service.h"
15 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
17 #include "chrome/browser/renderer_host/render_view_host.h" 15 #include "chrome/browser/renderer_host/render_view_host.h"
18 #include "chrome/browser/renderer_host/site_instance.h" 16 #include "chrome/browser/renderer_host/site_instance.h"
19 #include "chrome/browser/tab_contents/tab_contents.h" 17 #include "chrome/browser/tab_contents/tab_contents.h"
18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/browser/ui/browser_list.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/extensions/extension.h" 21 #include "chrome/common/extensions/extension.h"
22 #include "chrome/common/notification_service.h" 22 #include "chrome/common/notification_service.h"
23 #include "chrome/common/notification_type.h" 23 #include "chrome/common/notification_type.h"
24 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
25 25
26 // Keys for the information we store about individual BackgroundContents in 26 // Keys for the information we store about individual BackgroundContents in
27 // prefs. There is one top-level DictionaryValue (stored at 27 // prefs. There is one top-level DictionaryValue (stored at
28 // prefs::kRegisteredBackgroundContents). Information about each 28 // prefs::kRegisteredBackgroundContents). Information about each
29 // BackgroundContents is stored under that top-level DictionaryValue, keyed 29 // BackgroundContents is stored under that top-level DictionaryValue, keyed
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 TabContents* new_contents, 307 TabContents* new_contents,
308 WindowOpenDisposition disposition, 308 WindowOpenDisposition disposition,
309 const gfx::Rect& initial_pos, 309 const gfx::Rect& initial_pos,
310 bool user_gesture) { 310 bool user_gesture) {
311 Browser* browser = BrowserList::GetLastActiveWithProfile( 311 Browser* browser = BrowserList::GetLastActiveWithProfile(
312 new_contents->profile()); 312 new_contents->profile());
313 if (!browser) 313 if (!browser)
314 return; 314 return;
315 browser->AddTabContents(new_contents, disposition, initial_pos, user_gesture); 315 browser->AddTabContents(new_contents, disposition, initial_pos, user_gesture);
316 } 316 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698