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

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

Issue 109673004: Revert "Update all users of base::Version to explicitly specify the namespace, and clean up the hea… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "extensions/browser/pending_extension_info.h" 5 #include "extensions/browser/pending_extension_info.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 PendingExtensionInfo::PendingExtensionInfo( 11 PendingExtensionInfo::PendingExtensionInfo(
12 const std::string& id, 12 const std::string& id,
13 const GURL& update_url, 13 const GURL& update_url,
14 const base::Version& version, 14 const Version& version,
15 ShouldAllowInstallPredicate should_allow_install, 15 ShouldAllowInstallPredicate should_allow_install,
16 bool is_from_sync, 16 bool is_from_sync,
17 bool install_silently, 17 bool install_silently,
18 Manifest::Location install_source, 18 Manifest::Location install_source,
19 int creation_flags, 19 int creation_flags,
20 bool mark_acknowledged) 20 bool mark_acknowledged)
21 : id_(id), 21 : id_(id),
22 update_url_(update_url), 22 update_url_(update_url),
23 version_(version), 23 version_(version),
24 should_allow_install_(should_allow_install), 24 should_allow_install_(should_allow_install),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Different install sources; |this| has higher precedence if 59 // Different install sources; |this| has higher precedence if
60 // |install_source_| is the higher priority source. 60 // |install_source_| is the higher priority source.
61 Manifest::Location higher_priority_source = 61 Manifest::Location higher_priority_source =
62 Manifest::GetHigherPriorityLocation( 62 Manifest::GetHigherPriorityLocation(
63 install_source_, other.install_source_); 63 install_source_, other.install_source_);
64 64
65 return higher_priority_source == install_source_ ? 1 : -1; 65 return higher_priority_source == install_source_ ? 1 : -1;
66 } 66 }
67 67
68 } // namespace extensions 68 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/pending_extension_info.h ('k') | extensions/browser/pending_extension_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698