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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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: return "C9"; |
102 case CHROME_IOS_RESERVED: return "C0"; | 102 // Returns an invalid access point value here as this value does not |
| 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 "__"; |
103 case CHROME_APP_LIST: return "C7"; | 106 case CHROME_APP_LIST: return "C7"; |
104 case CHROME_MAC_APP_LIST: return "C8"; | 107 case CHROME_MAC_APP_LIST: return "C8"; |
105 case UNDEFINED_AP_Q: return "RQ"; | 108 case UNDEFINED_AP_Q: return "RQ"; |
106 case UNDEFINED_AP_R: return "RR"; | 109 case UNDEFINED_AP_R: return "RR"; |
107 case UNDEFINED_AP_S: return "RS"; | 110 case UNDEFINED_AP_S: return "RS"; |
108 case UNDEFINED_AP_T: return "RT"; | 111 case UNDEFINED_AP_T: return "RT"; |
109 case UNDEFINED_AP_U: return "RU"; | 112 case UNDEFINED_AP_U: return "RU"; |
110 case UNDEFINED_AP_V: return "RV"; | 113 case UNDEFINED_AP_V: return "RV"; |
111 case UNDEFINED_AP_W: return "RW"; | 114 case UNDEFINED_AP_W: return "RW"; |
112 case UNDEFINED_AP_X: return "RX"; | 115 case UNDEFINED_AP_X: return "RX"; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 case WEBAPPS: return "W"; | 202 case WEBAPPS: return "W"; |
200 case PINYIN_IME: return "N"; | 203 case PINYIN_IME: return "N"; |
201 case PARTNER: return "V"; | 204 case PARTNER: return "V"; |
202 } | 205 } |
203 | 206 |
204 ASSERT_STRING("GetProductName: Unknown Product"); | 207 ASSERT_STRING("GetProductName: Unknown Product"); |
205 return ""; | 208 return ""; |
206 } | 209 } |
207 | 210 |
208 } // namespace rlz_lib | 211 } // namespace rlz_lib |
OLD | NEW |