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

Side by Side Diff: chrome/browser/extensions/pending_extension_info.cc

Issue 10682007: Move PendingExtensionManager and PendingExtensionInfo into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 4 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 (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/pending_extension_info.h" 5 #include "chrome/browser/extensions/pending_extension_info.h"
6 6
7 namespace extensions {
8
7 PendingExtensionInfo::PendingExtensionInfo( 9 PendingExtensionInfo::PendingExtensionInfo(
8 const std::string& id, 10 const std::string& id,
9 const GURL& update_url, 11 const GURL& update_url,
10 const Version& version, 12 const Version& version,
11 ShouldAllowInstallPredicate should_allow_install, 13 ShouldAllowInstallPredicate should_allow_install,
12 bool is_from_sync, 14 bool is_from_sync,
13 bool install_silently, 15 bool install_silently,
14 extensions::Extension::Location install_source) 16 Extension::Location install_source)
15 : id_(id), 17 : id_(id),
16 update_url_(update_url), 18 update_url_(update_url),
17 version_(version), 19 version_(version),
18 should_allow_install_(should_allow_install), 20 should_allow_install_(should_allow_install),
19 is_from_sync_(is_from_sync), 21 is_from_sync_(is_from_sync),
20 install_silently_(install_silently), 22 install_silently_(install_silently),
21 install_source_(install_source) {} 23 install_source_(install_source) {}
22 24
23 PendingExtensionInfo::PendingExtensionInfo() 25 PendingExtensionInfo::PendingExtensionInfo()
24 : id_(""), 26 : id_(""),
25 update_url_(), 27 update_url_(),
26 should_allow_install_(NULL), 28 should_allow_install_(NULL),
27 is_from_sync_(true), 29 is_from_sync_(true),
28 install_silently_(false), 30 install_silently_(false),
29 install_source_(extensions::Extension::INVALID) {} 31 install_source_(Extension::INVALID) {}
30 32
31 bool PendingExtensionInfo::operator==(const PendingExtensionInfo& rhs) const { 33 bool PendingExtensionInfo::operator==(const PendingExtensionInfo& rhs) const {
32 return id_ == rhs.id_; 34 return id_ == rhs.id_;
33 } 35 }
36
37 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/pending_extension_info.h ('k') | chrome/browser/extensions/pending_extension_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698