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

Unified Diff: chrome/common/extensions/extension.cc

Issue 9340007: Make the Chrome Web Store Icon Syncable (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Responding to Comments Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 04475081a52ddc8d892092fde25f1caeb48a4a19..5e72e4923758f9c8ae7ed745bd22dfdbfb7c4919 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -2971,6 +2971,13 @@ bool Extension::OverlapsWithOrigin(const GURL& origin) const {
}
Extension::SyncType Extension::GetSyncType() const {
+ // The CWS needs to be treated as syncable app because it appears on the NTP
+ // and we need to make sure its position values are synced.
+ // If another case arises where we need to have a special case like the CWS,
+ // something more systematic should be done.
+ if (id() == extension_misc::kWebStoreAppId)
Aaron Boodman 2012/02/08 00:37:53 Perhaps a better test would be: return extension-
csharp 2012/02/08 15:46:16 I'm fairly certain that all loaded apps will appea
csharp 2012/02/08 16:43:33 Ok, so not all loaded apps appear in the app launc
+ return SYNC_TYPE_APP;
+
// TODO(akalin): Figure out if we need to allow some other types.
if (location() != Extension::INTERNAL) {
// We have a non-standard location.

Powered by Google App Engine
This is Rietveld 408576698