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

Side by Side Diff: chrome/browser/extensions/external_registry_loader_win.cc

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 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
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/extensions/external_registry_loader_win.h" 5 #include "chrome/browser/extensions/external_registry_loader_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 base::UTF16ToASCII(extension_version)); 174 base::UTF16ToASCII(extension_version));
175 prefs->SetString( 175 prefs->SetString(
176 MakePrefName(id, ExternalProviderImpl::kExternalCrx), 176 MakePrefName(id, ExternalProviderImpl::kExternalCrx),
177 extension_path_str); 177 extension_path_str);
178 prefs->SetBoolean( 178 prefs->SetBoolean(
179 MakePrefName(id, ExternalProviderImpl::kMayBeUntrusted), 179 MakePrefName(id, ExternalProviderImpl::kMayBeUntrusted),
180 true); 180 true);
181 } 181 }
182 182
183 prefs_.reset(prefs.release()); 183 prefs_.reset(prefs.release());
184 HISTOGRAM_TIMES("Extensions.ExternalRegistryLoaderWin", 184 LOCAL_HISTOGRAM_TIMES("Extensions.ExternalRegistryLoaderWin",
185 base::TimeTicks::Now() - start_time); 185 base::TimeTicks::Now() - start_time);
186 BrowserThread::PostTask( 186 BrowserThread::PostTask(
187 BrowserThread::UI, FROM_HERE, 187 BrowserThread::UI, FROM_HERE,
188 base::Bind(&ExternalRegistryLoader::LoadFinished, this)); 188 base::Bind(&ExternalRegistryLoader::LoadFinished, this));
189 } 189 }
190 190
191 } // namespace extensions 191 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/memory/oom_priority_manager.cc ('k') | chrome/browser/history/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698