OLD | NEW |
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/common/extensions/extension_process_policy.h" | 5 #include "chrome/common/extensions/extension_process_policy.h" |
6 | 6 |
7 #include "chrome/common/extensions/extension_constants.h" | 7 #include "chrome/common/extensions/extension_constants.h" |
8 #include "chrome/common/extensions/extension_set.h" | |
9 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | 8 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" |
10 #include "extensions/common/extension.h" | 9 #include "extensions/common/extension.h" |
| 10 #include "extensions/common/extension_set.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 const extensions::Extension* GetNonBookmarkAppExtension( | 14 const extensions::Extension* GetNonBookmarkAppExtension( |
15 const ExtensionSet& extensions, const GURL& url) { | 15 const ExtensionSet& extensions, const GURL& url) { |
16 // Exclude bookmark apps, which do not use the app process model. | 16 // Exclude bookmark apps, which do not use the app process model. |
17 const extensions::Extension* extension = | 17 const extensions::Extension* extension = |
18 extensions.GetExtensionOrAppByURL(url); | 18 extensions.GetExtensionOrAppByURL(url); |
19 if (extension && extension->from_bookmark()) | 19 if (extension && extension->from_bookmark()) |
20 extension = NULL; | 20 extension = NULL; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 if (old_url_is_hosted_app && | 56 if (old_url_is_hosted_app && |
57 new_url_is_normal_or_hosted && | 57 new_url_is_normal_or_hosted && |
58 !either_is_web_store) | 58 !either_is_web_store) |
59 return false; | 59 return false; |
60 } | 60 } |
61 | 61 |
62 return old_url_extension != new_url_extension; | 62 return old_url_extension != new_url_extension; |
63 } | 63 } |
64 | 64 |
65 } // namespace extensions | 65 } // namespace extensions |
OLD | NEW |