OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Key and value names of the location of the RLZ shared state. | 5 // Key and value names of the location of the RLZ shared state. |
6 | 6 |
7 #include "rlz/lib/lib_values.h" | 7 #include "rlz/lib/lib_values.h" |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "rlz/lib/assert.h" | 10 #include "rlz/lib/assert.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 case PARTNER_AP_1: return "V1"; | 91 case PARTNER_AP_1: return "V1"; |
92 case PARTNER_AP_2: return "V2"; | 92 case PARTNER_AP_2: return "V2"; |
93 case PARTNER_AP_3: return "V3"; | 93 case PARTNER_AP_3: return "V3"; |
94 case PARTNER_AP_4: return "V4"; | 94 case PARTNER_AP_4: return "V4"; |
95 case PARTNER_AP_5: return "V5"; | 95 case PARTNER_AP_5: return "V5"; |
96 case CHROME_MAC_OMNIBOX: return "C5"; | 96 case CHROME_MAC_OMNIBOX: return "C5"; |
97 case CHROME_MAC_HOME_PAGE: return "C6"; | 97 case CHROME_MAC_HOME_PAGE: return "C6"; |
98 case CHROMEOS_OMNIBOX: return "CA"; | 98 case CHROMEOS_OMNIBOX: return "CA"; |
99 case CHROMEOS_HOME_PAGE: return "CB"; | 99 case CHROMEOS_HOME_PAGE: return "CB"; |
100 case CHROMEOS_APP_LIST: return "CC"; | 100 case CHROMEOS_APP_LIST: return "CC"; |
101 case CHROME_IOS_OMNIBOX: return "C9"; | 101 case CHROME_IOS_OMNIBOX_TABLET: return "C9"; |
102 // Returns an invalid access point value here as this value does not | 102 case CHROME_IOS_OMNIBOX_MOBILE: return "CD"; |
103 // correspond to a defined access point, but need to be defined for | |
104 // code that iterates over all values of rlz_lib::AccessPoint. | |
105 case CHROME_IOS_RESERVED: return "__"; | |
106 case CHROME_APP_LIST: return "C7"; | 103 case CHROME_APP_LIST: return "C7"; |
107 case CHROME_MAC_APP_LIST: return "C8"; | 104 case CHROME_MAC_APP_LIST: return "C8"; |
108 case UNDEFINED_AP_Q: return "RQ"; | 105 case UNDEFINED_AP_Q: return "RQ"; |
109 case UNDEFINED_AP_R: return "RR"; | 106 case UNDEFINED_AP_R: return "RR"; |
110 case UNDEFINED_AP_S: return "RS"; | 107 case UNDEFINED_AP_S: return "RS"; |
111 case UNDEFINED_AP_T: return "RT"; | 108 case UNDEFINED_AP_T: return "RT"; |
112 case UNDEFINED_AP_U: return "RU"; | 109 case UNDEFINED_AP_U: return "RU"; |
113 case UNDEFINED_AP_V: return "RV"; | 110 case UNDEFINED_AP_V: return "RV"; |
114 case UNDEFINED_AP_W: return "RW"; | 111 case UNDEFINED_AP_W: return "RW"; |
115 case UNDEFINED_AP_X: return "RX"; | 112 case UNDEFINED_AP_X: return "RX"; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 case WEBAPPS: return "W"; | 199 case WEBAPPS: return "W"; |
203 case PINYIN_IME: return "N"; | 200 case PINYIN_IME: return "N"; |
204 case PARTNER: return "V"; | 201 case PARTNER: return "V"; |
205 } | 202 } |
206 | 203 |
207 ASSERT_STRING("GetProductName: Unknown Product"); | 204 ASSERT_STRING("GetProductName: Unknown Product"); |
208 return ""; | 205 return ""; |
209 } | 206 } |
210 | 207 |
211 } // namespace rlz_lib | 208 } // namespace rlz_lib |
OLD | NEW |