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

Side by Side Diff: chrome/browser/win/chrome_elf_init.cc

Issue 2098713003: Moved a bunch of win-specific files to the new win folder in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « chrome/browser/win/chrome_elf_init.h ('k') | chrome/browser/win/chrome_elf_init_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/win/chrome_elf_init.h"
6
5 #include <stddef.h> 7 #include <stddef.h>
6 8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
9 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
10 #include "base/metrics/sparse_histogram.h" 12 #include "base/metrics/sparse_histogram.h"
11 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
12 #include "base/win/registry.h" 14 #include "base/win/registry.h"
13 #include "chrome/browser/chrome_elf_init_win.h"
14 #include "chrome/common/chrome_version.h" 15 #include "chrome/common/chrome_version.h"
15 #include "chrome_elf/blacklist/blacklist.h" 16 #include "chrome_elf/blacklist/blacklist.h"
16 #include "chrome_elf/chrome_elf_constants.h" 17 #include "chrome_elf/chrome_elf_constants.h"
17 #include "chrome_elf/dll_hash/dll_hash.h" 18 #include "chrome_elf/dll_hash/dll_hash.h"
18 #include "components/variations/variations_associated_data.h" 19 #include "components/variations/variations_associated_data.h"
19 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
20 21
21 const char kBrowserBlacklistTrialName[] = "BrowserBlacklist"; 22 const char kBrowserBlacklistTrialName[] = "BrowserBlacklist";
22 const char kBrowserBlacklistTrialDisabledGroupName[] = "NoBlacklist"; 23 const char kBrowserBlacklistTrialDisabledGroupName[] = "NoBlacklist";
23 24
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 200
200 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, 201 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount,
201 static_cast<DWORD>(0)); 202 static_cast<DWORD>(0));
202 203
203 // Only report the blacklist as getting setup when both registry writes 204 // Only report the blacklist as getting setup when both registry writes
204 // succeed, since otherwise the blacklist wasn't properly setup. 205 // succeed, since otherwise the blacklist wasn't properly setup.
205 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) 206 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS)
206 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); 207 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED);
207 } 208 }
208 } 209 }
OLDNEW
« no previous file with comments | « chrome/browser/win/chrome_elf_init.h ('k') | chrome/browser/win/chrome_elf_init_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698