OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/manifest.h" | 5 #include "chrome/common/extensions/manifest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 keys::kContentScripts, | 48 keys::kContentScripts, |
49 keys::kOmnibox, | 49 keys::kOmnibox, |
50 keys::kDevToolsPage, | 50 keys::kDevToolsPage, |
51 keys::kSidebar, | 51 keys::kSidebar, |
52 keys::kHomepageURL, | 52 keys::kHomepageURL, |
53 keys::kContentSecurityPolicy, | 53 keys::kContentSecurityPolicy, |
54 keys::kFileBrowserHandlers, | 54 keys::kFileBrowserHandlers, |
55 keys::kIncognito, | 55 keys::kIncognito, |
56 keys::kInputComponents, | 56 keys::kInputComponents, |
57 keys::kTtsEngine, | 57 keys::kTtsEngine, |
58 keys::kIntents | 58 keys::kIntents, |
| 59 keys::kWebAccessibleResources |
59 }; | 60 }; |
60 | 61 |
61 // Keys that are not accessible by hosted apps. | 62 // Keys that are not accessible by hosted apps. |
62 const char* kNotHostedAppKeys[] = { | 63 const char* kNotHostedAppKeys[] = { |
63 keys::kBrowserAction, | 64 keys::kBrowserAction, |
64 keys::kPageAction, | 65 keys::kPageAction, |
65 keys::kPageActions, | 66 keys::kPageActions, |
66 keys::kChromeURLOverrides, | 67 keys::kChromeURLOverrides, |
67 keys::kContentScripts, | 68 keys::kContentScripts, |
68 keys::kOmnibox, | 69 keys::kOmnibox, |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 ListValue* expected_list = new ListValue(); | 388 ListValue* expected_list = new ListValue(); |
388 ListValue* actual_list = NULL; | 389 ListValue* actual_list = NULL; |
389 expected_list->Append(Value::CreateStringValue("blah")); | 390 expected_list->Append(Value::CreateStringValue("blah")); |
390 value->Set(unknown_key, expected_list); | 391 value->Set(unknown_key, expected_list); |
391 EXPECT_FALSE(manifest->GetList(unknown_key, &actual_list)); | 392 EXPECT_FALSE(manifest->GetList(unknown_key, &actual_list)); |
392 EXPECT_EQ(NULL, actual_list); | 393 EXPECT_EQ(NULL, actual_list); |
393 EXPECT_TRUE(value->Remove(unknown_key, NULL)); | 394 EXPECT_TRUE(value->Remove(unknown_key, NULL)); |
394 } | 395 } |
395 | 396 |
396 } // namespace extensions | 397 } // namespace extensions |
OLD | NEW |