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

Unified Diff: chromeos/network/network_profile_handler.h

Issue 679673002: Reduce runtime of client_cert_resolver_unittest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_profile_handler.h
diff --git a/chromeos/network/network_profile_handler.h b/chromeos/network/network_profile_handler.h
index e71186c85cca3d61ee90b423b41b5df3cdd31fa2..f3970ad15121f83e18945774025ff9bb7debf72b 100644
--- a/chromeos/network/network_profile_handler.h
+++ b/chromeos/network/network_profile_handler.h
@@ -5,6 +5,7 @@
#ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_
#define CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_
+#include <set>
#include <string>
#include <vector>
@@ -73,6 +74,11 @@ class CHROMEOS_EXPORT NetworkProfileHandler
private:
ProfileList profiles_;
+
+ // Contains the profile paths for which properties were requested. Once the
+ // properties are retrieved and the path is still in this set, a new profile
+ // object is created.
+ std::set<std::string> pending_profile_creations_;
ObserverList<NetworkProfileObserver> observers_;
// For Shill client callbacks

Powered by Google App Engine
This is Rietveld 408576698