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

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

Issue 7825026: Revert "Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_document.h" 5 #include "chrome/browser/chromeos/customization_document.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 const net::URLRequestStatus& status, 339 const net::URLRequestStatus& status,
340 int response_code, 340 int response_code,
341 const net::ResponseCookies& cookies, 341 const net::ResponseCookies& cookies,
342 const std::string& data) { 342 const std::string& data) {
343 if (response_code == 200) { 343 if (response_code == 200) {
344 LoadManifestFromString(data); 344 LoadManifestFromString(data);
345 } else { 345 } else {
346 NetworkLibrary* network = CrosLibrary::Get()->GetNetworkLibrary(); 346 NetworkLibrary* network = CrosLibrary::Get()->GetNetworkLibrary();
347 if (!network->Connected() && num_retries_ < kMaxFetchRetries) { 347 if (!network->Connected() && num_retries_ < kMaxFetchRetries) {
348 num_retries_++; 348 num_retries_++;
349 retry_timer_.Start(FROM_HERE, 349 retry_timer_.Start(base::TimeDelta::FromSeconds(kRetriesDelayInSec),
350 base::TimeDelta::FromSeconds(kRetriesDelayInSec),
351 this, &ServicesCustomizationDocument::StartFileFetch); 350 this, &ServicesCustomizationDocument::StartFileFetch);
352 return; 351 return;
353 } 352 }
354 LOG(ERROR) << "URL fetch for services customization failed:" 353 LOG(ERROR) << "URL fetch for services customization failed:"
355 << " response code = " << response_code 354 << " response code = " << response_code
356 << " URL = " << url.spec(); 355 << " URL = " << url.spec();
357 } 356 }
358 } 357 }
359 358
360 bool ServicesCustomizationDocument::ApplyCustomization() { 359 bool ServicesCustomizationDocument::ApplyCustomization() {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 DictionaryValue* carrier_deal = NULL; 409 DictionaryValue* carrier_deal = NULL;
411 if (carriers->GetDictionary(*iter, &carrier_deal)) { 410 if (carriers->GetDictionary(*iter, &carrier_deal)) {
412 carrier_deals_[*iter] = new CarrierDeal(carrier_deal); 411 carrier_deals_[*iter] = new CarrierDeal(carrier_deal);
413 } 412 }
414 } 413 }
415 } 414 }
416 return true; 415 return true;
417 } 416 }
418 417
419 } // namespace chromeos 418 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/power_library.cc ('k') | chrome/browser/chromeos/login/network_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698