 Chromium Code Reviews
 Chromium Code Reviews Issue 11336008:
  When a font family pref changes to the empty string, pass it to WebKit.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 11336008:
  When a font family pref changes to the empty string, pass it to WebKit.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| Index: chrome/common/pref_names_util.h | 
| diff --git a/chrome/common/pref_names_util.h b/chrome/common/pref_names_util.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..33761eb12168d8863658e876aba5f8346b283adf | 
| --- /dev/null | 
| +++ b/chrome/common/pref_names_util.h | 
| @@ -0,0 +1,21 @@ | 
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved. | 
| 
tfarina
2012/10/30 01:22:19
2010 -> 2012
 
falken
2012/10/30 07:01:34
Done.
 | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#ifndef CHROME_COMMON_PREF_NAMES_UTIL_H_ | 
| +#define CHROME_COMMON_PREF_NAMES_UTIL_H_ | 
| + | 
| +#include <string> | 
| + | 
| +namespace pref_names_util { | 
| 
tfarina
2012/10/30 01:22:19
I'm not sure what is the policy for chrome/common/
 | 
| + | 
| +// Extracts the generic family and script from font name pref path |pref_path|. | 
| +// For example, if |pref_path| is "webkit.webprefs.fonts.serif.Hang", returns | 
| +// true and sets |generic_family| to "serif" and |script| to "Hang". | 
| +bool ParseFontNamePrefPath(const std::string& pref_path, | 
| + std::string* generic_family, | 
| + std::string* script); | 
| + | 
| +} // namespace pref_names_util | 
| + | 
| +#endif // CHROME_COMMON_PREF_NAMES_UTIL_H_ |