Add optional homepage_url to manifest and use it in place of Gallery URL in UI.

BUG=28907
TEST=Added homepage_url to manifest, check that it replaces gallery URL link.

Review URL: http://codereview.chromium.org/3767013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63749 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index c90928e..4aa662d 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -217,6 +217,10 @@
     // The sites this extension has permission to talk to (using XHR, etc).
     URLPatternList host_permissions;
 
+    // The homepage for this extension. Useful if it is not hosted by Google and
+    // therefore does not have a Gallery URL.
+    GURL homepage_url;
+
     // URL for fetching an update manifest
     GURL update_url;
 
@@ -554,9 +558,10 @@
     return static_data_->icons;
   }
 
-  // Returns the Google Gallery URL for this extension, if one exists. For
+  // Returns the Homepage URL for this extension. If homepage_url was not
+  // specified in the manifest, this returns the Google Gallery URL. For
   // third-party extensions, this returns a blank GURL.
-  GURL GalleryUrl() const;
+  GURL GetHomepageURL() const;
 
   // Theme-related.
   DictionaryValue* GetThemeImages() const {