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

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

Issue 10274026: Revert r134673 ""View website" instead of "View in Web Store"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 info->SetString(info_keys::kNameKey, name()); 614 info->SetString(info_keys::kNameKey, name());
615 info->SetBoolean(info_keys::kEnabledKey, enabled); 615 info->SetBoolean(info_keys::kEnabledKey, enabled);
616 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location())); 616 info->SetBoolean(info_keys::kMayDisableKey, UserMayDisable(location()));
617 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); 617 info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled());
618 info->SetString(info_keys::kVersionKey, VersionString()); 618 info->SetString(info_keys::kVersionKey, VersionString());
619 info->SetString(info_keys::kDescriptionKey, description()); 619 info->SetString(info_keys::kDescriptionKey, description());
620 info->SetString(info_keys::kOptionsUrlKey, 620 info->SetString(info_keys::kOptionsUrlKey,
621 options_url().possibly_invalid_spec()); 621 options_url().possibly_invalid_spec());
622 info->SetString(info_keys::kHomepageUrlKey, 622 info->SetString(info_keys::kHomepageUrlKey,
623 GetHomepageURL().possibly_invalid_spec()); 623 GetHomepageURL().possibly_invalid_spec());
624 info->SetBoolean(info_keys::kHomepageProvidedKey, homepage_url_.is_valid());
625 } 624 }
626 625
627 Extension::Type Extension::GetType() const { 626 Extension::Type Extension::GetType() const {
628 if (converted_from_user_script()) 627 if (converted_from_user_script())
629 return TYPE_USER_SCRIPT; 628 return TYPE_USER_SCRIPT;
630 else 629 else
631 return manifest_->GetType(); 630 return manifest_->GetType();
632 } 631 }
633 632
634 // static 633 // static
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after
3721 already_disabled(false), 3720 already_disabled(false),
3722 extension(extension) {} 3721 extension(extension) {}
3723 3722
3724 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 3723 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
3725 const Extension* extension, 3724 const Extension* extension,
3726 const ExtensionPermissionSet* permissions, 3725 const ExtensionPermissionSet* permissions,
3727 Reason reason) 3726 Reason reason)
3728 : reason(reason), 3727 : reason(reason),
3729 extension(extension), 3728 extension(extension),
3730 permissions(permissions) {} 3729 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