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

Side by Side Diff: chrome/browser/extensions/extension_sync_data.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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/browser/extensions/extension_sync_data.h" 5 #include "chrome/browser/extensions/extension_sync_data.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/common/extensions/manifest_handlers/app_icon_color_info.h" 11 #include "chrome/common/extensions/manifest_handlers/app_icon_color_info.h"
12 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" 12 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
13 #include "chrome/common/extensions/manifest_handlers/linked_app_icons.h" 13 #include "chrome/common/extensions/manifest_handlers/linked_app_icons.h"
14 #include "components/crx_file/id_util.h" 14 #include "components/crx_file/id_util.h"
15 #include "components/sync/api/sync_data.h"
16 #include "components/sync/protocol/app_specifics.pb.h"
17 #include "components/sync/protocol/extension_specifics.pb.h"
18 #include "components/sync/protocol/sync.pb.h"
15 #include "extensions/common/extension.h" 19 #include "extensions/common/extension.h"
16 #include "extensions/common/manifest_url_handlers.h" 20 #include "extensions/common/manifest_url_handlers.h"
17 #include "sync/api/sync_data.h"
18 #include "sync/protocol/app_specifics.pb.h"
19 #include "sync/protocol/extension_specifics.pb.h"
20 #include "sync/protocol/sync.pb.h"
21 21
22 using syncer::StringOrdinal; 22 using syncer::StringOrdinal;
23 23
24 namespace extensions { 24 namespace extensions {
25 25
26 namespace { 26 namespace {
27 27
28 std::string GetExtensionSpecificsLogMessage( 28 std::string GetExtensionSpecificsLogMessage(
29 const sync_pb::ExtensionSpecifics& specifics) { 29 const sync_pb::ExtensionSpecifics& specifics) {
30 return base::StringPrintf( 30 return base::StringPrintf(
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 if (entity_specifics.has_extension()) 321 if (entity_specifics.has_extension())
322 return PopulateFromExtensionSpecifics(entity_specifics.extension()); 322 return PopulateFromExtensionSpecifics(entity_specifics.extension());
323 323
324 LOG(ERROR) << "Attempt to sync bad EntitySpecifics: no extension data."; 324 LOG(ERROR) << "Attempt to sync bad EntitySpecifics: no extension data.";
325 RecordBadSyncData(NO_EXTENSION_SPECIFICS); 325 RecordBadSyncData(NO_EXTENSION_SPECIFICS);
326 return false; 326 return false;
327 } 327 }
328 328
329 } // namespace extensions 329 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_data.h ('k') | chrome/browser/extensions/extension_sync_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698