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

Side by Side Diff: chromeos/network/onc/onc_translation_tables.cc

Issue 563643002: Document cellular properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_9c
Patch Set: Rebase Created 6 years, 3 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 | « chromeos/network/onc/onc_signature.cc ('k') | components/onc/docs/onc_spec.html » ('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) 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 #include "chromeos/network/onc/onc_translation_tables.h" 5 #include "chromeos/network/onc/onc_translation_tables.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "components/onc/onc_constants.h" 10 #include "components/onc/onc_constants.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 { ::onc::cellular::kIMEI, shill::kImeiProperty}, 331 { ::onc::cellular::kIMEI, shill::kImeiProperty},
332 { ::onc::cellular::kIMSI, shill::kImsiProperty}, 332 { ::onc::cellular::kIMSI, shill::kImsiProperty},
333 { ::onc::cellular::kManufacturer, shill::kManufacturerProperty}, 333 { ::onc::cellular::kManufacturer, shill::kManufacturerProperty},
334 { ::onc::cellular::kMDN, shill::kMdnProperty}, 334 { ::onc::cellular::kMDN, shill::kMdnProperty},
335 { ::onc::cellular::kMEID, shill::kMeidProperty}, 335 { ::onc::cellular::kMEID, shill::kMeidProperty},
336 { ::onc::cellular::kMIN, shill::kMinProperty}, 336 { ::onc::cellular::kMIN, shill::kMinProperty},
337 { ::onc::cellular::kModelID, shill::kModelIDProperty}, 337 { ::onc::cellular::kModelID, shill::kModelIDProperty},
338 { ::onc::cellular::kPRLVersion, shill::kPRLVersionProperty}, 338 { ::onc::cellular::kPRLVersion, shill::kPRLVersionProperty},
339 { ::onc::cellular::kProviderRequiresRoaming, 339 { ::onc::cellular::kProviderRequiresRoaming,
340 shill::kProviderRequiresRoamingProperty}, 340 shill::kProviderRequiresRoamingProperty},
341 { ::onc::cellular::kSelectedNetwork, shill::kSelectedNetworkProperty},
342 // This field is converted during translation, see onc_translator_*. 341 // This field is converted during translation, see onc_translator_*.
343 // { ::onc::cellular::kSIMLockStatus, shill::kSIMLockStatusProperty}, 342 // { ::onc::cellular::kSIMLockStatus, shill::kSIMLockStatusProperty},
344 { ::onc::cellular::kSIMPresent, shill::kSIMPresentProperty}, 343 { ::onc::cellular::kSIMPresent, shill::kSIMPresentProperty},
345 { ::onc::cellular::kSupportedCarriers, shill::kSupportedCarriersProperty}, 344 { ::onc::cellular::kSupportedCarriers, shill::kSupportedCarriersProperty},
346 { ::onc::cellular::kSupportNetworkScan, shill::kSupportNetworkScanProperty}, 345 { ::onc::cellular::kSupportNetworkScan, shill::kSupportNetworkScanProperty},
347 {NULL}}; 346 {NULL}};
348 347
349 const FieldTranslationEntry* GetFieldTranslationTable( 348 const FieldTranslationEntry* GetFieldTranslationTable(
350 const OncValueSignature& onc_signature) { 349 const OncValueSignature& onc_signature) {
351 for (const OncValueTranslationEntry* it = onc_value_translation_table; 350 for (const OncValueTranslationEntry* it = onc_value_translation_table;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 continue; 405 continue;
407 *onc_value = table[i].onc_value; 406 *onc_value = table[i].onc_value;
408 return true; 407 return true;
409 } 408 }
410 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; 409 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC";
411 return false; 410 return false;
412 } 411 }
413 412
414 } // namespace onc 413 } // namespace onc
415 } // namespace chromeos 414 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | components/onc/docs/onc_spec.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698