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

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

Issue 9705083: Unknown options in extension manifest file are silently ignored (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed an accedentally-included file Created 8 years, 9 months 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
OLDNEW
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.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after
3444 return false; 3444 return false;
3445 origin_only_pattern.SetHost(origin.host()); 3445 origin_only_pattern.SetHost(origin.host());
3446 origin_only_pattern.SetPath("/*"); 3446 origin_only_pattern.SetPath("/*");
3447 3447
3448 URLPatternSet origin_only_pattern_list; 3448 URLPatternSet origin_only_pattern_list;
3449 origin_only_pattern_list.AddPattern(origin_only_pattern); 3449 origin_only_pattern_list.AddPattern(origin_only_pattern);
3450 3450
3451 return web_extent().OverlapsWith(origin_only_pattern_list); 3451 return web_extent().OverlapsWith(origin_only_pattern_list);
3452 } 3452 }
3453 3453
3454 bool Extension::HasUnrecognizedManifestKeys(
3455 const std::vector<const std::string*>** unrecognized_keys) const {
3456 return manifest_->HasUnrecognizedKeys(unrecognized_keys);
3457 }
3458
3454 Extension::SyncType Extension::GetSyncType() const { 3459 Extension::SyncType Extension::GetSyncType() const {
3455 if (!IsSyncable()) { 3460 if (!IsSyncable()) {
3456 // We have a non-standard location. 3461 // We have a non-standard location.
3457 return SYNC_TYPE_NONE; 3462 return SYNC_TYPE_NONE;
3458 } 3463 }
3459 3464
3460 // Disallow extensions with non-gallery auto-update URLs for now. 3465 // Disallow extensions with non-gallery auto-update URLs for now.
3461 // 3466 //
3462 // TODO(akalin): Relax this restriction once we've put in UI to 3467 // TODO(akalin): Relax this restriction once we've put in UI to
3463 // approve synced extensions. 3468 // approve synced extensions.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
3541 already_disabled(false), 3546 already_disabled(false),
3542 extension(extension) {} 3547 extension(extension) {}
3543 3548
3544 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 3549 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
3545 const Extension* extension, 3550 const Extension* extension,
3546 const ExtensionPermissionSet* permissions, 3551 const ExtensionPermissionSet* permissions,
3547 Reason reason) 3552 Reason reason)
3548 : reason(reason), 3553 : reason(reason),
3549 extension(extension), 3554 extension(extension),
3550 permissions(permissions) {} 3555 permissions(permissions) {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698