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

Side by Side Diff: chrome/browser/ui/browser_adoption.cc

Issue 10945010: Switch BookmarkTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_command_controller.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/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 7 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
8 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 8 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
9 #include "chrome/browser/ui/constrained_window_tab_helper.h" 9 #include "chrome/browser/ui/constrained_window_tab_helper.h"
10 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 10 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
(...skipping 27 matching lines...) Expand all
38 // ... more tab helper creation goes here ... 38 // ... more tab helper creation goes here ...
39 } 39 }
40 40
41 void Browser::SetAsDelegate(WebContents* web_contents, Browser* delegate) { 41 void Browser::SetAsDelegate(WebContents* web_contents, Browser* delegate) {
42 // WebContents... 42 // WebContents...
43 web_contents->SetDelegate(delegate); 43 web_contents->SetDelegate(delegate);
44 44
45 // ...and all the helpers. 45 // ...and all the helpers.
46 TabContents* tab = TabContents::FromWebContents(web_contents); 46 TabContents* tab = TabContents::FromWebContents(web_contents);
47 tab->blocked_content_tab_helper()->set_delegate(delegate); 47 tab->blocked_content_tab_helper()->set_delegate(delegate);
48 tab->bookmark_tab_helper()->set_delegate(delegate); 48 BookmarkTabHelper::FromWebContents(web_contents)->set_delegate(delegate);
49 tab->constrained_window_tab_helper()->set_delegate(delegate); 49 tab->constrained_window_tab_helper()->set_delegate(delegate);
50 tab->core_tab_helper()->set_delegate(delegate); 50 tab->core_tab_helper()->set_delegate(delegate);
51 tab->search_engine_tab_helper()->set_delegate(delegate); 51 tab->search_engine_tab_helper()->set_delegate(delegate);
52 tab->zoom_controller()->set_observer(delegate); 52 tab->zoom_controller()->set_observer(delegate);
53 } 53 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698