OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/mock_plugin_exceptions_table_model.h" | 5 #include "chrome/browser/mock_plugin_exceptions_table_model.h" |
6 | 6 |
7 void MockPluginExceptionsTableModel::set_plugins( | 7 void MockPluginExceptionsTableModel::set_plugins( |
8 const NPAPI::PluginList::PluginMap& plugins) { | 8 const std::vector<PluginGroup>& plugins) { |
9 plugins_ = plugins; | 9 for (size_t i = 0; i < plugins.size(); ++i) |
10 plugins_.push_back(plugins[i]); | |
Bernhard Bauer
2010/12/03 16:13:28
I think you could just assign the vector.
Jakob Kummerow
2010/12/06 18:21:12
Done.
| |
10 } | 11 } |
11 | 12 |
12 void MockPluginExceptionsTableModel::GetPlugins( | 13 std::vector<PluginGroup> MockPluginExceptionsTableModel::GetPlugins() { |
13 NPAPI::PluginList::PluginMap* plugins) { | 14 return plugins_; |
14 *plugins = plugins_; | |
15 } | 15 } |
OLD | NEW |