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

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_ui.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/ui/webui/chromeos/mobile_setup_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 } 1120 }
1121 } 1121 }
1122 break; 1122 break;
1123 case PLAN_ACTIVATION_RECONNECTING_OTASP_TRY: 1123 case PLAN_ACTIVATION_RECONNECTING_OTASP_TRY:
1124 case PLAN_ACTIVATION_RECONNECTING: 1124 case PLAN_ACTIVATION_RECONNECTING:
1125 case PLAN_ACTIVATION_RECONNECTING_OTASP: { 1125 case PLAN_ACTIVATION_RECONNECTING_OTASP: {
1126 // Start reconnect timer. This will ensure that we are not left in 1126 // Start reconnect timer. This will ensure that we are not left in
1127 // limbo by the network library. 1127 // limbo by the network library.
1128 if (!reconnect_timer_.IsRunning()) { 1128 if (!reconnect_timer_.IsRunning()) {
1129 reconnect_timer_.Start( 1129 reconnect_timer_.Start(
1130 FROM_HERE,
1130 base::TimeDelta::FromMilliseconds(kReconnectTimerDelayMS), 1131 base::TimeDelta::FromMilliseconds(kReconnectTimerDelayMS),
1131 this, &MobileSetupHandler::ReconnectTimerFired); 1132 this, &MobileSetupHandler::ReconnectTimerFired);
1132 } 1133 }
1133 // Reset connection metrics and try to connect. 1134 // Reset connection metrics and try to connect.
1134 reconnect_wait_count_ = 0; 1135 reconnect_wait_count_ = 0;
1135 connection_retry_count_ = 0; 1136 connection_retry_count_ = 0;
1136 connection_start_time_ = base::Time::Now(); 1137 connection_start_time_ = base::Time::Now();
1137 ConnectToNetwork(network, kReconnectDelayMS); 1138 ConnectToNetwork(network, kReconnectDelayMS);
1138 break; 1139 break;
1139 } 1140 }
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 MobileSetupHandler* handler = new MobileSetupHandler(service_path); 1326 MobileSetupHandler* handler = new MobileSetupHandler(service_path);
1326 AddMessageHandler((handler)->Attach(this)); 1327 AddMessageHandler((handler)->Attach(this));
1327 handler->Init(contents); 1328 handler->Init(contents);
1328 MobileSetupUIHTMLSource* html_source = 1329 MobileSetupUIHTMLSource* html_source =
1329 new MobileSetupUIHTMLSource(service_path); 1330 new MobileSetupUIHTMLSource(service_path);
1330 1331
1331 // Set up the chrome://mobilesetup/ source. 1332 // Set up the chrome://mobilesetup/ source.
1332 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 1333 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
1333 profile->GetChromeURLDataManager()->AddDataSource(html_source); 1334 profile->GetChromeURLDataManager()->AddDataSource(html_source);
1334 } 1335 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/dragged_tab_controller.cc ('k') | chrome/browser/ui/webui/flash_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698