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

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

Issue 7812036: Update base/timer.h code to pass through Location from call sites. (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(base::TimeDelta::FromSeconds(kRetriesDelayInSec), 349 retry_timer_.Start(FROM_HERE,
350 base::TimeDelta::FromSeconds(kRetriesDelayInSec),
350 this, &ServicesCustomizationDocument::StartFileFetch); 351 this, &ServicesCustomizationDocument::StartFileFetch);
351 return; 352 return;
352 } 353 }
353 LOG(ERROR) << "URL fetch for services customization failed:" 354 LOG(ERROR) << "URL fetch for services customization failed:"
354 << " response code = " << response_code 355 << " response code = " << response_code
355 << " URL = " << url.spec(); 356 << " URL = " << url.spec();
356 } 357 }
357 } 358 }
358 359
359 bool ServicesCustomizationDocument::ApplyCustomization() { 360 bool ServicesCustomizationDocument::ApplyCustomization() {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 DictionaryValue* carrier_deal = NULL; 410 DictionaryValue* carrier_deal = NULL;
410 if (carriers->GetDictionary(*iter, &carrier_deal)) { 411 if (carriers->GetDictionary(*iter, &carrier_deal)) {
411 carrier_deals_[*iter] = new CarrierDeal(carrier_deal); 412 carrier_deals_[*iter] = new CarrierDeal(carrier_deal);
412 } 413 }
413 } 414 }
414 } 415 }
415 return true; 416 return true;
416 } 417 }
417 418
418 } // namespace chromeos 419 } // 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