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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/CPUProfilerModel.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 * @return {?ProfilerAgent.Profile} 127 * @return {?ProfilerAgent.Profile}
128 */ 128 */
129 function extractProfile(error, profile) 129 function extractProfile(error, profile)
130 { 130 {
131 return !error && profile ? profile : null; 131 return !error && profile ? profile : null;
132 } 132 }
133 this._isRecording = false; 133 this._isRecording = false;
134 return this.target().profilerAgent().stop(extractProfile); 134 return this.target().profilerAgent().stop(extractProfile);
135 }, 135 },
136 136
137 /**
138 * @override
139 */
137 dispose: function() 140 dispose: function()
138 { 141 {
139 WebInspector.moduleSetting("highResolutionCpuProfiling").removeChangeLis tener(this._configureCpuProfilerSamplingInterval, this); 142 WebInspector.moduleSetting("highResolutionCpuProfiling").removeChangeLis tener(this._configureCpuProfilerSamplingInterval, this);
140 }, 143 },
141 144
142 __proto__: WebInspector.SDKModel.prototype 145 __proto__: WebInspector.SDKModel.prototype
143 }; 146 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698