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

Unified Diff: chrome/browser/extensions/extension_sync_data.cc

Issue 11726002: Move the parsing of 'update_url' & 'options_page' URLs out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_parse
Patch Set: Created 8 years 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/browser/extensions/extension_sync_data.cc
diff --git a/chrome/browser/extensions/extension_sync_data.cc b/chrome/browser/extensions/extension_sync_data.cc
index f9982abf91cc531a5703ad1a9a987f645e12d165..6caa962632d7ae9e170ab22c3df51d779cad9289 100644
--- a/chrome/browser/extensions/extension_sync_data.cc
+++ b/chrome/browser/extensions/extension_sync_data.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/extensions/app_sync_data.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/manifest_url_info.h"
#include "sync/api/sync_data.h"
#include "sync/protocol/extension_specifics.pb.h"
#include "sync/protocol/sync.pb.h"
@@ -43,7 +44,7 @@ ExtensionSyncData::ExtensionSyncData(const Extension& extension,
enabled_(enabled),
incognito_enabled_(incognito_enabled),
version_(*extension.version()),
- update_url_(extension.update_url()),
+ update_url_(ManifestURLInfo::GetUpdateURL(&extension)),
name_(extension.non_localized_name()) {
}

Powered by Google App Engine
This is Rietveld 408576698