Index: chrome/browser/chromeos/policy/server_backed_state_keys_broker.cc |
diff --git a/chrome/browser/chromeos/policy/server_backed_state_keys_broker.cc b/chrome/browser/chromeos/policy/server_backed_state_keys_broker.cc |
index 9763f2fc74058265a65a3df6a81f3c46e13dcef0..db32df02bddfece4dfa5517c6e52b6dd2d472dac 100644 |
--- a/chrome/browser/chromeos/policy/server_backed_state_keys_broker.cc |
+++ b/chrome/browser/chromeos/policy/server_backed_state_keys_broker.cc |
@@ -4,10 +4,9 @@ |
#include "chrome/browser/chromeos/policy/server_backed_state_keys_broker.h" |
-#include <algorithm> |
- |
#include "base/bind.h" |
#include "base/location.h" |
+#include "base/stl_util.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "chromeos/dbus/session_manager_client.h" |
@@ -76,8 +75,7 @@ void ServerBackedStateKeysBroker::StoreStateKeys( |
initial_retrieval_completed_ = true; |
if (state_keys.empty()) { |
LOG(WARNING) << "Failed to obtain server-backed state keys."; |
- } else if (state_keys.end() != |
- std::find(state_keys.begin(), state_keys.end(), std::string())) { |
+ } else if (base::ContainsValue(state_keys, std::string())) { |
LOG(WARNING) << "Bad state keys."; |
} else { |
send_notification |= state_keys_ != state_keys; |