OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/extensions/manifest_handlers/automation.h" | 5 #include "chrome/common/extensions/manifest_handlers/automation.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 as_object->matches.reset(info.matches.ToStringVector().release()); | 299 as_object->matches.reset(info.matches.ToStringVector().release()); |
300 } | 300 } |
301 automation->as_object.reset(as_object); | 301 automation->as_object.reset(as_object); |
302 return automation; | 302 return automation; |
303 } | 303 } |
304 | 304 |
305 AutomationInfo::AutomationInfo() : desktop(false), interact(false) { | 305 AutomationInfo::AutomationInfo() : desktop(false), interact(false) { |
306 } | 306 } |
307 | 307 |
308 AutomationInfo::AutomationInfo(bool desktop, | 308 AutomationInfo::AutomationInfo(bool desktop, |
309 const URLPatternSet matches, | 309 const URLPatternSet& matches, |
310 bool interact) | 310 bool interact) |
311 : desktop(desktop), matches(matches), interact(interact) { | 311 : desktop(desktop), matches(matches), interact(interact) {} |
312 } | |
313 | 312 |
314 AutomationInfo::~AutomationInfo() { | 313 AutomationInfo::~AutomationInfo() { |
315 } | 314 } |
316 | 315 |
317 } // namespace extensions | 316 } // namespace extensions |
OLD | NEW |