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

Side by Side Diff: chrome/browser/extensions/app_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/app_sync_data.h" 5 #include "chrome/browser/extensions/app_sync_data.h"
6 6
7 #include "chrome/common/extensions/extension.h" 7 #include "extensions/common/extension.h"
8 #include "sync/api/sync_data.h" 8 #include "sync/api/sync_data.h"
9 #include "sync/protocol/app_specifics.pb.h" 9 #include "sync/protocol/app_specifics.pb.h"
10 #include "sync/protocol/sync.pb.h" 10 #include "sync/protocol/sync.pb.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 AppSyncData::AppSyncData() {} 14 AppSyncData::AppSyncData() {}
15 15
16 AppSyncData::AppSyncData(const syncer::SyncData& sync_data) { 16 AppSyncData::AppSyncData(const syncer::SyncData& sync_data) {
17 PopulateFromSyncData(sync_data); 17 PopulateFromSyncData(sync_data);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 app_launch_ordinal_ = syncer::StringOrdinal(specifics.app_launch_ordinal()); 68 app_launch_ordinal_ = syncer::StringOrdinal(specifics.app_launch_ordinal());
69 page_ordinal_ = syncer::StringOrdinal(specifics.page_ordinal()); 69 page_ordinal_ = syncer::StringOrdinal(specifics.page_ordinal());
70 } 70 }
71 71
72 void AppSyncData::PopulateFromSyncData(const syncer::SyncData& sync_data) { 72 void AppSyncData::PopulateFromSyncData(const syncer::SyncData& sync_data) {
73 PopulateFromAppSpecifics(sync_data.GetSpecifics().app()); 73 PopulateFromAppSpecifics(sync_data.GetSpecifics().app());
74 } 74 }
75 75
76 } // namespace extensions 76 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_sync_bundle.cc ('k') | chrome/browser/extensions/browser_extension_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698