Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: chrome/common/extensions/manifest_handlers/automation.cc

Issue 2141753002: [Extensions] Code cleanup - const &s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698