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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_sync_util.cc

Issue 16915006: Convert most of extensions and some other random stuff to using the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/extensions/api/storage/settings_sync_util.h" 5 #include "chrome/browser/extensions/api/storage/settings_sync_util.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "sync/protocol/app_setting_specifics.pb.h" 9 #include "sync/protocol/app_setting_specifics.pb.h"
10 #include "sync/protocol/extension_setting_specifics.pb.h" 10 #include "sync/protocol/extension_setting_specifics.pb.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return syncer::SyncChange( 91 return syncer::SyncChange(
92 FROM_HERE, 92 FROM_HERE,
93 syncer::SyncChange::ACTION_UPDATE, 93 syncer::SyncChange::ACTION_UPDATE,
94 CreateData(extension_id, key, value, type)); 94 CreateData(extension_id, key, value, type));
95 } 95 }
96 96
97 syncer::SyncChange CreateDelete( 97 syncer::SyncChange CreateDelete(
98 const std::string& extension_id, 98 const std::string& extension_id,
99 const std::string& key, 99 const std::string& key,
100 syncer::ModelType type) { 100 syncer::ModelType type) {
101 DictionaryValue no_value; 101 base::DictionaryValue no_value;
102 return syncer::SyncChange( 102 return syncer::SyncChange(
103 FROM_HERE, 103 FROM_HERE,
104 syncer::SyncChange::ACTION_DELETE, 104 syncer::SyncChange::ACTION_DELETE,
105 CreateData(extension_id, key, no_value, type)); 105 CreateData(extension_id, key, no_value, type));
106 } 106 }
107 107
108 } // namespace settings_sync_util 108 } // namespace settings_sync_util
109 109
110 } // namespace extensions 110 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698