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

Side by Side Diff: rlz/lib/lib_values.cc

Issue 237273002: Do not reserve an access point code for CHROME_IOS_RESERVED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 | no next file » | 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) 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
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 // Note: this enumeration does not correspond to a real access point and
103 // should never be used. Fails back to the default that raises an assert.
104 case CHROME_IOS_RESERVED: break;
Roger Tawa OOO till Jul 10th 2014/04/14 19:35:20 Or just remove lines 102-104 completely so that it
pkl (ping after 24h if needed) 2014/04/14 19:43:09 Compiler will fail because not all enum values are
103 case CHROME_APP_LIST: return "C7"; 105 case CHROME_APP_LIST: return "C7";
104 case CHROME_MAC_APP_LIST: return "C8"; 106 case CHROME_MAC_APP_LIST: return "C8";
105 case UNDEFINED_AP_Q: return "RQ"; 107 case UNDEFINED_AP_Q: return "RQ";
106 case UNDEFINED_AP_R: return "RR"; 108 case UNDEFINED_AP_R: return "RR";
107 case UNDEFINED_AP_S: return "RS"; 109 case UNDEFINED_AP_S: return "RS";
108 case UNDEFINED_AP_T: return "RT"; 110 case UNDEFINED_AP_T: return "RT";
109 case UNDEFINED_AP_U: return "RU"; 111 case UNDEFINED_AP_U: return "RU";
110 case UNDEFINED_AP_V: return "RV"; 112 case UNDEFINED_AP_V: return "RV";
111 case UNDEFINED_AP_W: return "RW"; 113 case UNDEFINED_AP_W: return "RW";
112 case UNDEFINED_AP_X: return "RX"; 114 case UNDEFINED_AP_X: return "RX";
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 case WEBAPPS: return "W"; 201 case WEBAPPS: return "W";
200 case PINYIN_IME: return "N"; 202 case PINYIN_IME: return "N";
201 case PARTNER: return "V"; 203 case PARTNER: return "V";
202 } 204 }
203 205
204 ASSERT_STRING("GetProductName: Unknown Product"); 206 ASSERT_STRING("GetProductName: Unknown Product");
205 return ""; 207 return "";
206 } 208 }
207 209
208 } // namespace rlz_lib 210 } // namespace rlz_lib
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698