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

Side by Side Diff: chrome/browser/themes/theme_syncable_service.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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 | 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/themes/theme_syncable_service.h" 5 #include "chrome/browser/themes/theme_syncable_service.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_system.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/themes/theme_service.h" 10 #include "chrome/browser/themes/theme_service.h"
12 #include "chrome/common/extensions/manifest_url_handler.h" 11 #include "chrome/common/extensions/manifest_url_handler.h"
13 #include "chrome/common/extensions/sync_helper.h" 12 #include "chrome/common/extensions/sync_helper.h"
13 #include "extensions/browser/extension_system.h"
14 #include "extensions/common/extension.h" 14 #include "extensions/common/extension.h"
15 #include "sync/protocol/sync.pb.h" 15 #include "sync/protocol/sync.pb.h"
16 #include "sync/protocol/theme_specifics.pb.h" 16 #include "sync/protocol/theme_specifics.pb.h"
17 17
18 using std::string; 18 using std::string;
19 19
20 namespace { 20 namespace {
21 21
22 bool IsTheme(const extensions::Extension* extension) { 22 bool IsTheme(const extensions::Extension* extension) {
23 return extension->is_theme(); 23 return extension->is_theme();
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 syncer::SyncChange(FROM_HERE, change_type, 334 syncer::SyncChange(FROM_HERE, change_type,
335 syncer::SyncData::CreateLocalData( 335 syncer::SyncData::CreateLocalData(
336 kCurrentThemeClientTag, kCurrentThemeNodeTitle, 336 kCurrentThemeClientTag, kCurrentThemeNodeTitle,
337 entity_specifics))); 337 entity_specifics)));
338 338
339 DVLOG(1) << "Update theme specifics from current theme: " 339 DVLOG(1) << "Update theme specifics from current theme: "
340 << changes.back().ToString(); 340 << changes.back().ToString();
341 341
342 return sync_processor_->ProcessSyncChanges(FROM_HERE, changes); 342 return sync_processor_->ProcessSyncChanges(FROM_HERE, changes);
343 } 343 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_service.cc ('k') | chrome/browser/ui/app_list/app_list_controller_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698