OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_LOCALIZED_ERROR_H_ | 5 #ifndef CHROME_COMMON_LOCALIZED_ERROR_H_ |
6 #define CHROME_COMMON_LOCALIZED_ERROR_H_ | 6 #define CHROME_COMMON_LOCALIZED_ERROR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // part of the app. | 57 // part of the app. |
58 static void GetAppErrorStrings(const GURL& display_url, | 58 static void GetAppErrorStrings(const GURL& display_url, |
59 const extensions::Extension* app, | 59 const extensions::Extension* app, |
60 const std::string& locale, | 60 const std::string& locale, |
61 base::DictionaryValue* error_strings); | 61 base::DictionaryValue* error_strings); |
62 #endif | 62 #endif |
63 | 63 |
64 static const char kHttpErrorDomain[]; | 64 static const char kHttpErrorDomain[]; |
65 | 65 |
66 private: | 66 private: |
| 67 // Sets up the Google Cached Copy button experiment if part of the |
| 68 // field trial. This promotes the Google cached copy suggestion from under |
| 69 // the details section to a blue button. |
| 70 static void EnableGoogleCachedCopyButtonExperiment( |
| 71 base::ListValue* suggestions, |
| 72 base::DictionaryValue* error_strings); |
| 73 |
67 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); | 74 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); |
68 }; | 75 }; |
69 | 76 |
70 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_ | 77 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_ |
OLD | NEW |