OLD | NEW |
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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 | 502 |
503 Extension::Extension(const base::FilePath& path, | 503 Extension::Extension(const base::FilePath& path, |
504 scoped_ptr<extensions::Manifest> manifest) | 504 scoped_ptr<extensions::Manifest> manifest) |
505 : manifest_version_(0), | 505 : manifest_version_(0), |
506 converted_from_user_script_(false), | 506 converted_from_user_script_(false), |
507 manifest_(manifest.release()), | 507 manifest_(manifest.release()), |
508 finished_parsing_manifest_(false), | 508 finished_parsing_manifest_(false), |
509 display_in_launcher_(true), | 509 display_in_launcher_(true), |
510 display_in_new_tab_page_(true), | 510 display_in_new_tab_page_(true), |
511 wants_file_access_(false), | 511 wants_file_access_(false), |
| 512 is_syncable_(true), |
512 creation_flags_(0) { | 513 creation_flags_(0) { |
513 DCHECK(path.empty() || path.IsAbsolute()); | 514 DCHECK(path.empty() || path.IsAbsolute()); |
514 path_ = id_util::MaybeNormalizePath(path); | 515 path_ = id_util::MaybeNormalizePath(path); |
515 } | 516 } |
516 | 517 |
517 Extension::~Extension() { | 518 Extension::~Extension() { |
518 } | 519 } |
519 | 520 |
520 bool Extension::InitFromValue(int flags, base::string16* error) { | 521 bool Extension::InitFromValue(int flags, base::string16* error) { |
521 DCHECK(error); | 522 DCHECK(error); |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 | 786 |
786 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 787 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
787 const Extension* extension, | 788 const Extension* extension, |
788 const PermissionSet* permissions, | 789 const PermissionSet* permissions, |
789 Reason reason) | 790 Reason reason) |
790 : reason(reason), | 791 : reason(reason), |
791 extension(extension), | 792 extension(extension), |
792 permissions(permissions) {} | 793 permissions(permissions) {} |
793 | 794 |
794 } // namespace extensions | 795 } // namespace extensions |
OLD | NEW |