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

Side by Side Diff: chrome/browser/chromeos/customization/customization_document.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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 "chrome/browser/chromeos/customization/customization_document.h" 5 #include "chrome/browser/chromeos/customization/customization_document.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 return; 507 return;
508 508
509 if (!url_.is_valid()) { 509 if (!url_.is_valid()) {
510 std::string customization_id; 510 std::string customization_id;
511 chromeos::system::StatisticsProvider* provider = 511 chromeos::system::StatisticsProvider* provider =
512 chromeos::system::StatisticsProvider::GetInstance(); 512 chromeos::system::StatisticsProvider::GetInstance();
513 if (provider->GetMachineStatistic(system::kCustomizationIdKey, 513 if (provider->GetMachineStatistic(system::kCustomizationIdKey,
514 &customization_id) && 514 &customization_id) &&
515 !customization_id.empty()) { 515 !customization_id.empty()) {
516 url_ = GURL(base::StringPrintf( 516 url_ = GURL(base::StringPrintf(
517 kManifestUrl, base::StringToLowerASCII(customization_id).c_str())); 517 kManifestUrl, base::ToLowerASCII(customization_id).c_str()));
518 } else { 518 } else {
519 // Remember that there is no customization ID in VPD. 519 // Remember that there is no customization ID in VPD.
520 OnCustomizationNotFound(); 520 OnCustomizationNotFound();
521 return; 521 return;
522 } 522 }
523 } 523 }
524 524
525 if (url_.is_valid()) { 525 if (url_.is_valid()) {
526 fetch_started_ = true; 526 fetch_started_ = true;
527 if (url_.SchemeIsFile()) { 527 if (url_.SchemeIsFile()) {
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 apply_tasks_success_ += success; 954 apply_tasks_success_ += success;
955 955
956 if (apply_tasks_started_ != apply_tasks_finished_) 956 if (apply_tasks_started_ != apply_tasks_finished_)
957 return; 957 return;
958 958
959 if (apply_tasks_success_ == apply_tasks_finished_) 959 if (apply_tasks_success_ == apply_tasks_finished_)
960 SetApplied(true); 960 SetApplied(true);
961 } 961 }
962 962
963 } // namespace chromeos 963 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/signature_validator_win_unittest.cc ('k') | chrome/browser/chromeos/file_manager/file_tasks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698