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

Side by Side Diff: chrome/browser/policy/browser_policy_connector.cc

Issue 7054022: Use int64 instead of int for cloud policy infrastructure-delay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/policy/browser_policy_connector.h" 5 #include "chrome/browser/policy/browser_policy_connector.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/policy/cloud_policy_subsystem.h" 10 #include "chrome/browser/policy/cloud_policy_subsystem.h"
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/policy/enterprise_install_attributes.h" 29 #include "chrome/browser/policy/enterprise_install_attributes.h"
30 #endif 30 #endif
31 31
32 namespace policy { 32 namespace policy {
33 33
34 namespace { 34 namespace {
35 35
36 // The following constants define delays applied before the initial policy fetch 36 // The following constants define delays applied before the initial policy fetch
37 // on startup. (So that displaying Chrome's GUI does not get delayed.) 37 // on startup. (So that displaying Chrome's GUI does not get delayed.)
38 // Delay in milliseconds from startup. 38 // Delay in milliseconds from startup.
39 const int kServiceInitializationStartupDelay = 5000; 39 const int64 kServiceInitializationStartupDelay = 5000;
40 40
41 } // namespace 41 } // namespace
42 42
43 // static 43 // static
44 BrowserPolicyConnector* BrowserPolicyConnector::Create() { 44 BrowserPolicyConnector* BrowserPolicyConnector::Create() {
45 return new BrowserPolicyConnector(); 45 return new BrowserPolicyConnector();
46 } 46 }
47 47
48 BrowserPolicyConnector::BrowserPolicyConnector() 48 BrowserPolicyConnector::BrowserPolicyConnector()
49 : ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) { 49 : ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 void BrowserPolicyConnector::Initialize() { 201 void BrowserPolicyConnector::Initialize() {
202 if (cloud_policy_subsystem_.get()) { 202 if (cloud_policy_subsystem_.get()) {
203 cloud_policy_subsystem_->Initialize( 203 cloud_policy_subsystem_->Initialize(
204 g_browser_process->local_state(), 204 g_browser_process->local_state(),
205 kServiceInitializationStartupDelay); 205 kServiceInitializationStartupDelay);
206 } 206 }
207 } 207 }
208 208
209 void BrowserPolicyConnector::ScheduleServiceInitialization( 209 void BrowserPolicyConnector::ScheduleServiceInitialization(
210 int delay_milliseconds) { 210 int64 delay_milliseconds) {
211 if (cloud_policy_subsystem_.get()) 211 if (cloud_policy_subsystem_.get())
212 cloud_policy_subsystem_->ScheduleServiceInitialization(delay_milliseconds); 212 cloud_policy_subsystem_->ScheduleServiceInitialization(delay_milliseconds);
213 } 213 }
214 214
215 } // namespace 215 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.h ('k') | chrome/browser/policy/cloud_policy_subsystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698