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

Side by Side Diff: chrome/browser/chromeos/policy/auto_enrollment_client.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/policy/auto_enrollment_client.h" 5 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/metrics/sparse_histogram.h" 14 #include "base/metrics/sparse_histogram.h"
15 #include "base/prefs/pref_registry_simple.h"
16 #include "base/prefs/pref_service.h"
17 #include "base/prefs/scoped_user_pref_update.h"
18 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
19 #include "chrome/browser/chromeos/policy/server_backed_device_state.h" 16 #include "chrome/browser/chromeos/policy/server_backed_device_state.h"
20 #include "chrome/common/chrome_content_client.h" 17 #include "chrome/common/chrome_content_client.h"
21 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
22 #include "components/policy/core/common/cloud/device_management_service.h" 19 #include "components/policy/core/common/cloud/device_management_service.h"
23 #include "components/policy/core/common/cloud/system_policy_request_context.h" 20 #include "components/policy/core/common/cloud/system_policy_request_context.h"
21 #include "components/prefs/pref_registry_simple.h"
22 #include "components/prefs/pref_service.h"
23 #include "components/prefs/scoped_user_pref_update.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "crypto/sha2.h" 25 #include "crypto/sha2.h"
26 #include "net/url_request/url_request_context_getter.h" 26 #include "net/url_request/url_request_context_getter.h"
27 #include "policy/proto/device_management_backend.pb.h" 27 #include "policy/proto/device_management_backend.pb.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 using content::BrowserThread; 30 using content::BrowserThread;
31 31
32 namespace em = enterprise_management; 32 namespace em = enterprise_management;
33 33
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 base::TimeDelta delta = kZero; 429 base::TimeDelta delta = kZero;
430 if (!time_extra_start_.is_null()) 430 if (!time_extra_start_.is_null())
431 delta = now - time_extra_start_; 431 delta = now - time_extra_start_;
432 // This samples |kZero| when there was no need for extra time, so that we can 432 // This samples |kZero| when there was no need for extra time, so that we can
433 // measure the ratio of users that succeeded without needing a delay to the 433 // measure the ratio of users that succeeded without needing a delay to the
434 // total users going through OOBE. 434 // total users going through OOBE.
435 UMA_HISTOGRAM_CUSTOM_TIMES(kUMAExtraTime, delta, kMin, kMax, kBuckets); 435 UMA_HISTOGRAM_CUSTOM_TIMES(kUMAExtraTime, delta, kMin, kMax, kBuckets);
436 } 436 }
437 437
438 } // namespace policy 438 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698