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

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

Issue 10103015: "View website" instead of "View in Web Store" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment/var naming Created 8 years, 7 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 | Annotate | Revision Log
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 "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/file_path.h" 10 #include "base/file_path.h"
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 info->SetString(info_keys::kNameKey, name()); 610 info->SetString(info_keys::kNameKey, name());
611 info->SetBoolean(info_keys::kEnabledKey, enabled); 611 info->SetBoolean(info_keys::kEnabledKey, enabled);
612 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); 612 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location()));
613 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); 613 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled());
614 info->SetString(info_keys::kVersionKey, VersionString()); 614 info->SetString(info_keys::kVersionKey, VersionString());
615 info->SetString(info_keys::kDescriptionKey, description()); 615 info->SetString(info_keys::kDescriptionKey, description());
616 info->SetString(info_keys::kOptionsUrlKey, 616 info->SetString(info_keys::kOptionsUrlKey,
617 options_url().possibly_invalid_spec()); 617 options_url().possibly_invalid_spec());
618 info->SetString(info_keys::kHomepageUrlKey, 618 info->SetString(info_keys::kHomepageUrlKey,
619 GetHomepageURL().possibly_invalid_spec()); 619 GetHomepageURL().possibly_invalid_spec());
620 info->SetBoolean(info_keys::kHomepageProvidedKey, homepage_url_.is_valid());
620 } 621 }
621 622
622 Extension::Type Extension::GetType() const { 623 Extension::Type Extension::GetType() const {
623 if (converted_from_user_script()) 624 if (converted_from_user_script())
624 return TYPE_USER_SCRIPT; 625 return TYPE_USER_SCRIPT;
625 else 626 else
626 return manifest_->GetType(); 627 return manifest_->GetType();
627 } 628 }
628 629
629 // static 630 // static
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3669 already_disabled(false), 3670 already_disabled(false),
3670 extension(extension) {} 3671 extension(extension) {}
3671 3672
3672 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 3673 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
3673 const Extension* extension, 3674 const Extension* extension,
3674 const ExtensionPermissionSet* permissions, 3675 const ExtensionPermissionSet* permissions,
3675 Reason reason) 3676 Reason reason)
3676 : reason(reason), 3677 : reason(reason),
3677 extension(extension), 3678 extension(extension),
3678 permissions(permissions) {} 3679 permissions(permissions) {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | chrome/common/extensions/extension_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698