| 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/context_menu/context_menu_api.h" | 5 #include "chrome/browser/extensions/api/context_menu/context_menu_api.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 bool RemoveAllContextMenusFunction::RunImpl() { | 390 bool RemoveAllContextMenusFunction::RunImpl() { |
| 391 ExtensionService* service = profile()->GetExtensionService(); | 391 ExtensionService* service = profile()->GetExtensionService(); |
| 392 MenuManager* manager = service->menu_manager(); | 392 MenuManager* manager = service->menu_manager(); |
| 393 manager->RemoveAllContextItems(GetExtension()->id()); | 393 manager->RemoveAllContextItems(GetExtension()->id()); |
| 394 manager->WriteToStorage(GetExtension()); | 394 manager->WriteToStorage(GetExtension()); |
| 395 return true; | 395 return true; |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace extensions | 398 } // namespace extensions |
| OLD | NEW |