| Index: chrome/browser/sync/glue/extension_backed_data_type_controller.cc
|
| diff --git a/chrome/browser/sync/glue/extension_backed_data_type_controller.cc b/chrome/browser/sync/glue/extension_backed_data_type_controller.cc
|
| index 7de4d7e732c1de49a12507d536253c1249c14164..8a117c4908d2082746979093cf55d0636af2d5f9 100644
|
| --- a/chrome/browser/sync/glue/extension_backed_data_type_controller.cc
|
| +++ b/chrome/browser/sync/glue/extension_backed_data_type_controller.cc
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "chrome/browser/sync/glue/extension_backed_data_type_controller.h"
|
|
|
| -#include "base/sha1.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
|
| @@ -18,17 +17,6 @@ using content::BrowserThread;
|
|
|
| namespace browser_sync {
|
|
|
| -namespace {
|
| -
|
| -// Helper method to generate a hash from an extension id.
|
| -std::string IdToHash(const std::string extension_id) {
|
| - std::string hash = base::SHA1HashString(extension_id);
|
| - hash = base::HexEncode(hash.c_str(), hash.length());
|
| - return hash;
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| ExtensionBackedDataTypeController::ExtensionBackedDataTypeController(
|
| syncer::ModelType type,
|
| const std::string& extension_hash,
|
| @@ -108,7 +96,7 @@ bool ExtensionBackedDataTypeController::IsSyncingExtensionEnabled() const {
|
|
|
| bool ExtensionBackedDataTypeController::DoesExtensionMatch(
|
| const extensions::Extension& extension) const {
|
| - return IdToHash(extension.id()) == extension_hash_;
|
| + return extension.HashedIdInHex() == extension_hash_;
|
| }
|
|
|
| bool ExtensionBackedDataTypeController::StartModels() {
|
|
|