| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/extensions/action_box_controller.h" | |
| 6 | |
| 7 #include <algorithm> | |
| 8 | |
| 9 namespace extensions { | |
| 10 | |
| 11 // static | |
| 12 void ActionBoxController::AddMissingActions( | |
| 13 const std::set<ExtensionAction*>& actions, | |
| 14 std::vector<ExtensionAction*>* out) { | |
| 15 for (std::set<ExtensionAction*>::const_iterator it = actions.begin(); | |
| 16 it != actions.end(); ++it) { | |
| 17 ExtensionAction* action = (*it); | |
| 18 if (!std::count(out->begin(), out->end(), action)) | |
| 19 out->push_back(action); | |
| 20 } | |
| 21 } | |
| 22 | |
| 23 } // namespace extensions | |
| OLD | NEW |