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

Side by Side Diff: components/password_manager/core/browser/password_manager_util.cc

Issue 1668523002: [Password Manager] Switch password manager code to use the Feature framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses the review inputs. Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/password_manager/core/browser/password_manager_util.h" 5 #include "components/password_manager/core/browser/password_manager_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/core/browser/log_manager.h" 10 #include "components/password_manager/core/browser/log_manager.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 old_vector.weak_clear(); // All owned by |new_vector| by now. 85 old_vector.weak_clear(); // All owned by |new_vector| by now.
86 return new_vector; 86 return new_vector;
87 } 87 }
88 88
89 bool IsLoggingActive(const password_manager::PasswordManagerClient* client) { 89 bool IsLoggingActive(const password_manager::PasswordManagerClient* client) {
90 const password_manager::LogManager* log_manager = client->GetLogManager(); 90 const password_manager::LogManager* log_manager = client->GetLogManager();
91 return log_manager && log_manager->IsLoggingActive(); 91 return log_manager && log_manager->IsLoggingActive();
92 } 92 }
93 93
94 bool IsFeatureDisabledFromCommandLine(const base::Feature& feature) {
95 return base::FeatureList::GetInstance()->IsFeatureOverriddenFromCommandLine(
96 feature.name, base::FeatureList::OVERRIDE_DISABLE_FEATURE);
97 }
98
94 } // namespace password_manager_util 99 } // namespace password_manager_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698