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

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

Issue 2758103003: Extensions: Move IsIncognitoEnabled to extensions/ from chrome/. (Closed)
Patch Set: Address review Created 3 years, 8 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"
8 #include "chrome/browser/extensions/extension_view_host.h" 7 #include "chrome/browser/extensions/extension_view_host.h"
9 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
11 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
12 #include "extensions/browser/extension_registry.h" 11 #include "extensions/browser/extension_registry.h"
12 #include "extensions/browser/extension_util.h"
13 #include "extensions/browser/process_manager.h" 13 #include "extensions/browser/process_manager.h"
14 #include "extensions/common/manifest_handlers/incognito_info.h" 14 #include "extensions/common/manifest_handlers/incognito_info.h"
15 #include "extensions/common/view_type.h" 15 #include "extensions/common/view_type.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 namespace { 19 namespace {
20 20
21 // Creates a new ExtensionHost with its associated view, grouping it in the 21 // Creates a new ExtensionHost with its associated view, grouping it in the
22 // appropriate SiteInstance (and therefore process) based on the URL and 22 // appropriate SiteInstance (and therefore process) based on the URL and
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // static 108 // static
109 ExtensionViewHost* ExtensionViewHostFactory::CreateDialogHost( 109 ExtensionViewHost* ExtensionViewHostFactory::CreateDialogHost(
110 const GURL& url, 110 const GURL& url,
111 Profile* profile) { 111 Profile* profile) {
112 DCHECK(profile); 112 DCHECK(profile);
113 return CreateViewHost(url, profile, NULL, VIEW_TYPE_EXTENSION_DIALOG); 113 return CreateViewHost(url, profile, NULL, VIEW_TYPE_EXTENSION_DIALOG);
114 } 114 }
115 115
116 } // namespace extensions 116 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | chrome/browser/extensions/extension_web_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698