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

Side by Side Diff: chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc

Issue 46853004: Move ExtensionPrefs and friends to extensions/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and update app_shell Created 6 years, 11 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/signed_in_devices/signed_in_devices_api. h" 5 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api. h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h" 10 #include "chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h"
11 #include "chrome/browser/extensions/extension_prefs.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/sync/glue/device_info.h" 12 #include "chrome/browser/sync/glue/device_info.h"
14 #include "chrome/browser/sync/profile_sync_service.h" 13 #include "chrome/browser/sync/profile_sync_service.h"
15 #include "chrome/browser/sync/profile_sync_service_factory.h" 14 #include "chrome/browser/sync/profile_sync_service_factory.h"
16 #include "chrome/common/extensions/api/signed_in_devices.h" 15 #include "chrome/common/extensions/api/signed_in_devices.h"
16 #include "extensions/browser/extension_prefs.h"
17 17
18 using base::DictionaryValue; 18 using base::DictionaryValue;
19 using browser_sync::DeviceInfo; 19 using browser_sync::DeviceInfo;
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 static const char kPrefStringForIdMapping[] = "id_mapping_dictioanry"; 23 static const char kPrefStringForIdMapping[] = "id_mapping_dictioanry";
24 24
25 // Gets the dictionary that stores the id mapping. The dictionary is stored 25 // Gets the dictionary that stores the id mapping. The dictionary is stored
26 // in the |ExtensionPrefs|. 26 // in the |ExtensionPrefs|.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 ++it) { 127 ++it) {
128 result->Append((*it)->ToValue()); 128 result->Append((*it)->ToValue());
129 } 129 }
130 130
131 SetResult(result.release()); 131 SetResult(result.release());
132 return true; 132 return true;
133 } 133 }
134 134
135 } // namespace extensions 135 } // namespace extensions
136 136
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698