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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 ListValue* expected_list = new ListValue(); | 383 ListValue* expected_list = new ListValue(); |
383 ListValue* actual_list = NULL; | 384 ListValue* actual_list = NULL; |
384 expected_list->Append(Value::CreateStringValue("blah")); | 385 expected_list->Append(Value::CreateStringValue("blah")); |
385 value->Set(unknown_key, expected_list); | 386 value->Set(unknown_key, expected_list); |
386 EXPECT_FALSE(manifest->GetList(unknown_key, &actual_list)); | 387 EXPECT_FALSE(manifest->GetList(unknown_key, &actual_list)); |
387 EXPECT_EQ(NULL, actual_list); | 388 EXPECT_EQ(NULL, actual_list); |
388 EXPECT_TRUE(value->Remove(unknown_key, NULL)); | 389 EXPECT_TRUE(value->Remove(unknown_key, NULL)); |
389 } | 390 } |
390 | 391 |
391 } // namespace extensions | 392 } // namespace extensions |
OLD | NEW |