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

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

Issue 540673002: Enable forced extension updates on NaCl arch mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« extensions/common/extension.h ('K') | « extensions/common/extension.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "extensions/common/extension.h" 5 #include "extensions/common/extension.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 } 428 }
429 429
430 void Extension::AddWebExtentPattern(const URLPattern& pattern) { 430 void Extension::AddWebExtentPattern(const URLPattern& pattern) {
431 // Bookmark apps are permissionless. 431 // Bookmark apps are permissionless.
432 if (from_bookmark()) 432 if (from_bookmark())
433 return; 433 return;
434 434
435 extent_.AddPattern(pattern); 435 extent_.AddPattern(pattern);
436 } 436 }
437 437
438 void Extension::SetPlatformSpecificResourceArchs(
439 const std::set<std::string>& archs) {
440 platform_specific_resource_archs_ = archs;
441 }
442
443 void Extension::GetPlatformSpecificResourceArchs(
444 std::set<std::string>* archs) const {
445 *archs = platform_specific_resource_archs_;
446 }
447
438 // static 448 // static
439 bool Extension::InitExtensionID(extensions::Manifest* manifest, 449 bool Extension::InitExtensionID(extensions::Manifest* manifest,
440 const base::FilePath& path, 450 const base::FilePath& path,
441 const std::string& explicit_id, 451 const std::string& explicit_id,
442 int creation_flags, 452 int creation_flags,
443 base::string16* error) { 453 base::string16* error) {
444 if (!explicit_id.empty()) { 454 if (!explicit_id.empty()) {
445 manifest->set_extension_id(explicit_id); 455 manifest->set_extension_id(explicit_id);
446 return true; 456 return true;
447 } 457 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 773
764 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 774 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
765 const Extension* extension, 775 const Extension* extension,
766 const PermissionSet* permissions, 776 const PermissionSet* permissions,
767 Reason reason) 777 Reason reason)
768 : reason(reason), 778 : reason(reason),
769 extension(extension), 779 extension(extension),
770 permissions(permissions) {} 780 permissions(permissions) {}
771 781
772 } // namespace extensions 782 } // namespace extensions
OLDNEW
« extensions/common/extension.h ('K') | « extensions/common/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698