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

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

Issue 923463003: [Extensions] Remove the Infobar API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_view_host_factory.h" 5 #include "chrome/browser/extensions/extension_view_host_factory.h"
6 6
7 #include "chrome/browser/extensions/extension_util.h" 7 #include "chrome/browser/extensions/extension_util.h"
8 #include "chrome/browser/extensions/extension_view_host.h" 8 #include "chrome/browser/extensions/extension_view_host.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // static 108 // static
109 ExtensionViewHost* ExtensionViewHostFactory::CreatePopupHost(const GURL& url, 109 ExtensionViewHost* ExtensionViewHostFactory::CreatePopupHost(const GURL& url,
110 Browser* browser) { 110 Browser* browser) {
111 DCHECK(browser); 111 DCHECK(browser);
112 return CreateViewHost( 112 return CreateViewHost(
113 url, browser->profile(), browser, VIEW_TYPE_EXTENSION_POPUP); 113 url, browser->profile(), browser, VIEW_TYPE_EXTENSION_POPUP);
114 } 114 }
115 115
116 // static 116 // static
117 ExtensionViewHost* ExtensionViewHostFactory::CreateInfobarHost(
118 const GURL& url,
119 Browser* browser) {
120 DCHECK(browser);
121 return CreateViewHost(
122 url, browser->profile(), browser, VIEW_TYPE_EXTENSION_INFOBAR);
123 }
124
125 // static
126 ExtensionViewHost* ExtensionViewHostFactory::CreateDialogHost( 117 ExtensionViewHost* ExtensionViewHostFactory::CreateDialogHost(
127 const GURL& url, 118 const GURL& url,
128 Profile* profile) { 119 Profile* profile) {
129 DCHECK(profile); 120 DCHECK(profile);
130 return CreateViewHost(url, profile, NULL, VIEW_TYPE_EXTENSION_DIALOG); 121 return CreateViewHost(url, profile, NULL, VIEW_TYPE_EXTENSION_DIALOG);
131 } 122 }
132 123
133 } // namespace extensions 124 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698