|
1 | 1 | // Copyright (c) 2012 Intel Corp
|
2 | 2 | // Copyright (c) 2012 The Chromium Authors
|
3 |
| -// |
4 |
| -// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 3 | +// |
| 4 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
5 | 5 | // of this software and associated documentation files (the "Software"), to deal
|
6 | 6 | // in the Software without restriction, including without limitation the rights
|
7 | 7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell co
|
8 | 8 | // pies of the Software, and to permit persons to whom the Software is furnished
|
9 | 9 | // to do so, subject to the following conditions:
|
10 |
| -// |
| 10 | +// |
11 | 11 | // The above copyright notice and this permission notice shall be included in al
|
12 | 12 | // l copies or substantial portions of the Software.
|
13 |
| -// |
| 13 | +// |
14 | 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IM
|
15 | 15 | // PLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNES
|
16 | 16 | // S FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
@@ -199,7 +199,7 @@ bool ShellContentRendererClient::goodForNode(WebKit::WebFrame* frame)
|
199 | 199 | bool use_node =
|
200 | 200 | CommandLine::ForCurrentProcess()->HasSwitch(switches::kNodejs) &&
|
201 | 201 | !frame->isNwDisabledChildFrame() &&
|
202 |
| - (force_on || url.SchemeIsFile() || is_nw_protocol); |
| 202 | + (force_on || url.SchemeIsFile() || is_nw_protocol || url.SchemeIs("app")); |
203 | 203 | return use_node;
|
204 | 204 | }
|
205 | 205 |
|
|
0 commit comments