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

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

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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 "chrome/browser/extensions/app_sync_data.h" 8 #include "chrome/browser/extensions/app_sync_data.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/extensions/manifest_url_handler.h" 10 #include "chrome/common/extensions/manifest_url_handler.h"
11 #include "extensions/common/extension.h"
12 #include "sync/api/sync_data.h" 12 #include "sync/api/sync_data.h"
13 #include "sync/protocol/extension_specifics.pb.h" 13 #include "sync/protocol/extension_specifics.pb.h"
14 #include "sync/protocol/sync.pb.h" 14 #include "sync/protocol/sync.pb.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 ExtensionSyncData::ExtensionSyncData() 18 ExtensionSyncData::ExtensionSyncData()
19 : uninstalled_(false), 19 : uninstalled_(false),
20 enabled_(false), 20 enabled_(false),
21 incognito_enabled_(false) { 21 incognito_enabled_(false) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const sync_pb::EntitySpecifics& entity_specifics = sync_data.GetSpecifics(); 106 const sync_pb::EntitySpecifics& entity_specifics = sync_data.GetSpecifics();
107 107
108 if (entity_specifics.has_extension()) { 108 if (entity_specifics.has_extension()) {
109 PopulateFromExtensionSpecifics(entity_specifics.extension()); 109 PopulateFromExtensionSpecifics(entity_specifics.extension());
110 } else { 110 } else {
111 LOG(FATAL) << "Attempt to sync bad EntitySpecifics."; 111 LOG(FATAL) << "Attempt to sync bad EntitySpecifics.";
112 } 112 }
113 } 113 }
114 114
115 } // namespace extensions 115 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_bundle.cc ('k') | chrome/browser/extensions/extension_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698