OLD | NEW |
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/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api.
h" |
6 | 6 |
7 #include "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
8 #include "apps/app_restore_service.h" | 8 #include "apps/app_restore_service.h" |
9 #include "apps/saved_files_service.h" | 9 #include "apps/saved_files_service.h" |
10 #include "apps/shell_window.h" | 10 #include "apps/shell_window.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 content::Details<const RenderViewHost>(details).ptr()); | 231 content::Details<const RenderViewHost>(details).ptr()); |
232 break; | 232 break; |
233 default: | 233 default: |
234 NOTREACHED(); | 234 NOTREACHED(); |
235 return; | 235 return; |
236 } | 236 } |
237 | 237 |
238 if (extension) | 238 if (extension) |
239 event_data.item_id = extension->id(); | 239 event_data.item_id = extension->id(); |
240 | 240 |
241 scoped_ptr<ListValue> args(new ListValue()); | 241 scoped_ptr<base::ListValue> args(new base::ListValue()); |
242 args->Append(event_data.ToValue().release()); | 242 args->Append(event_data.ToValue().release()); |
243 | 243 |
244 event_name = developer_private::OnItemStateChanged::kEventName; | 244 event_name = developer_private::OnItemStateChanged::kEventName; |
245 scoped_ptr<Event> event(new Event(event_name, args.Pass())); | 245 scoped_ptr<Event> event(new Event(event_name, args.Pass())); |
246 ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass()); | 246 ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass()); |
247 } | 247 } |
248 | 248 |
249 void DeveloperPrivateAPI::SetLastUnpackedDirectory(const base::FilePath& path) { | 249 void DeveloperPrivateAPI::SetLastUnpackedDirectory(const base::FilePath& path) { |
250 last_unpacked_directory_ = path; | 250 last_unpacked_directory_ = path; |
251 } | 251 } |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 return true; | 1341 return true; |
1342 } | 1342 } |
1343 | 1343 |
1344 DeveloperPrivateIsProfileManagedFunction:: | 1344 DeveloperPrivateIsProfileManagedFunction:: |
1345 ~DeveloperPrivateIsProfileManagedFunction() { | 1345 ~DeveloperPrivateIsProfileManagedFunction() { |
1346 } | 1346 } |
1347 | 1347 |
1348 } // namespace api | 1348 } // namespace api |
1349 | 1349 |
1350 } // namespace extensions | 1350 } // namespace extensions |
OLD | NEW |