Index: components/autofill/core/common/save_password_progress_logger.cc |
diff --git a/components/autofill/core/common/save_password_progress_logger.cc b/components/autofill/core/common/save_password_progress_logger.cc |
index 7c2ab4f1a070ff2b418d96c8f6f79a0c634ceaf0..5a5fe7681c2b4ba8c802f8ac84132de4e72996b3 100644 |
--- a/components/autofill/core/common/save_password_progress_logger.cc |
+++ b/components/autofill/core/common/save_password_progress_logger.cc |
@@ -122,6 +122,13 @@ void SavePasswordProgressLogger::LogMessage( |
LogValue(STRING_MESSAGE, StringValue(GetStringFromID(message))); |
} |
+// static |
+std::string SavePasswordProgressLogger::ScrubURL(const GURL& url) { |
+ if (url.is_valid()) |
+ return url.GetWithEmptyPath().spec(); |
+ return std::string(); |
+} |
+ |
void SavePasswordProgressLogger::LogValue(StringID label, const Value& log) { |
std::string log_string; |
bool conversion_to_string_successful = base::JSONWriter::WriteWithOptions( |
@@ -143,13 +150,6 @@ std::string SavePasswordProgressLogger::ScrubElementID(std::string element_id) { |
return element_id; |
} |
-// Static |
-std::string SavePasswordProgressLogger::ScrubURL(const GURL& url) { |
- if (url.is_valid()) |
- return url.GetWithEmptyPath().spec(); |
- return std::string(); |
-} |
- |
// Note 1: Caching the ID->string map in an array would be probably faster, but |
// the switch statement is (a) robust against re-ordering, and (b) checks in |
// compile-time, that all IDs get a string assigned. The expected frequency of |