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

Side by Side Diff: chrome/browser/extensions/extension_tab_util.cc

Issue 11434074: browser: Move FindBrowserWithWebContents() into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/extensions/extension_host.cc ('k') | chrome/browser/first_run/first_run.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) 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/extensions/extension_tab_util.h" 5 #include "chrome/browser/extensions/extension_tab_util.h"
6 6
7 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" 7 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
8 #include "chrome/browser/extensions/tab_helper.h" 8 #include "chrome/browser/extensions/tab_helper.h"
9 #include "chrome/browser/extensions/window_controller.h" 9 #include "chrome/browser/extensions/window_controller.h"
10 #include "chrome/browser/net/url_fixer_upper.h" 10 #include "chrome/browser/net/url_fixer_upper.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // static 261 // static
262 void ExtensionTabUtil::ForEachTab( 262 void ExtensionTabUtil::ForEachTab(
263 const base::Callback<void(WebContents*)>& callback) { 263 const base::Callback<void(WebContents*)>& callback) {
264 for (TabContentsIterator iterator; !iterator.done(); ++iterator) 264 for (TabContentsIterator iterator; !iterator.done(); ++iterator)
265 callback.Run((*iterator)->web_contents()); 265 callback.Run((*iterator)->web_contents());
266 } 266 }
267 267
268 // static 268 // static
269 extensions::WindowController* ExtensionTabUtil::GetWindowControllerOfTab( 269 extensions::WindowController* ExtensionTabUtil::GetWindowControllerOfTab(
270 const WebContents* web_contents) { 270 const WebContents* web_contents) {
271 Browser* browser = browser::FindBrowserWithWebContents(web_contents); 271 Browser* browser = chrome::FindBrowserWithWebContents(web_contents);
272 if (browser != NULL) 272 if (browser != NULL)
273 return browser->extension_window_controller(); 273 return browser->extension_window_controller();
274 274
275 return NULL; 275 return NULL;
276 } 276 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698