Index: chrome/browser/ui/webui/web_ui_util.h |
diff --git a/chrome/browser/ui/webui/web_ui_util.h b/chrome/browser/ui/webui/web_ui_util.h |
index 6c877720f59a3c7f3abc691bc85b6f1172e4230a..342423fb8d9a746b65856aa10a23141b0c74afc3 100644 |
--- a/chrome/browser/ui/webui/web_ui_util.h |
+++ b/chrome/browser/ui/webui/web_ui_util.h |
@@ -38,9 +38,12 @@ std::string GetImageDataUrlFromResource(int resource_id); |
WindowOpenDisposition GetDispositionFromClick(const ListValue* args, |
int start_index); |
-// Given a scale factor such as "1x" or "2x" returns the ScaleFactor enum |
-// value for this scale factor. |
-ui::ScaleFactor ParseScaleFactor(const base::StringPiece& identifier); |
+// Given a scale factor such as "1x" or "2x", sets |scale_factor| to the |
+// ScaleFactor enum value for this scale factor. If the scale factor could not |
+// be determined correctly from the string, then |scale_factor| is set to |
+// SCALE_FACTOR_NONE, and false is returned. |
+bool ParseScaleFactor(const base::StringPiece& identifier, |
+ ui::ScaleFactor* scale_factor); |
// Parses a URL containing some path @{scale}x. If it does not contain a scale |
// factor then the default scale factor is returned. |