Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: chrome/common/localized_error.h

Issue 1214303003: Add UMA histograms for Google cached copy experiment on network error interstitial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix NetErrorHelperCore unittest Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/common/localized_error.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool is_post); 44 bool is_post);
45 45
46 // Returns true if an error page exists for the specified parameters. 46 // Returns true if an error page exists for the specified parameters.
47 static bool HasStrings(const std::string& error_domain, int error_code); 47 static bool HasStrings(const std::string& error_domain, int error_code);
48 48
49 static const char kHttpErrorDomain[]; 49 static const char kHttpErrorDomain[];
50 50
51 private: 51 private:
52 // Sets up the Google Cached Copy button experiment if part of the 52 // Sets up the Google Cached Copy button experiment if part of the
53 // field trial. This promotes the Google cached copy suggestion from under 53 // field trial. This promotes the Google cached copy suggestion from under
54 // the details section to a blue button. 54 // the details section to a blue button. Also experiments with the
55 // button label.
55 static void EnableGoogleCachedCopyButtonExperiment( 56 static void EnableGoogleCachedCopyButtonExperiment(
56 base::ListValue* suggestions, 57 base::ListValue* suggestions,
57 base::DictionaryValue* error_strings); 58 base::DictionaryValue* error_strings);
58 59
59 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); 60 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError);
60 }; 61 };
61 62
62 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_ 63 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/localized_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698