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

Side by Side Diff: chrome/common/extensions/manifest_unittest.cc

Issue 8849010: Add 'web_accessible_resource" keyword for version 2 extension manifests. This makes extension res... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/common/extensions/manifest.cc ('k') | chrome/renderer/extensions/extension_resource_request_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698