Index: base/prefs/mock_pref_change_callback.h |
diff --git a/base/prefs/mock_pref_change_callback.h b/base/prefs/mock_pref_change_callback.h |
index 422754afd6ee9e7cf7abf6bf3ebc964ab81c9fd9..3030fab17c23c9ed6775e70eee65b45ea6d5295f 100644 |
--- a/base/prefs/mock_pref_change_callback.h |
+++ b/base/prefs/mock_pref_change_callback.h |
@@ -19,8 +19,7 @@ using testing::Truly; |
// |pref_name| in |prefs| matches |value|. If |value| is NULL, the matcher |
// checks that the value is not set. |
MATCHER_P3(PrefValueMatches, prefs, pref_name, value, "") { |
- const PrefService::Preference* pref = |
- prefs->FindPreference(pref_name.c_str()); |
+ const PrefService::Preference* pref = prefs->FindPreference(pref_name); |
if (!pref) |
return false; |