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

Side by Side Diff: Source/devtools/front_end/sdk/IsolatedFileSystemManager.js

Issue 298333003: DevTools: Implement console message logging through an extension (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove duplicate logging Created 6 years, 6 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 delete this._pendingFileSystemRequests; 121 delete this._pendingFileSystemRequests;
122 }, 122 },
123 123
124 /** 124 /**
125 * @param {string} errorMessage 125 * @param {string} errorMessage
126 * @param {!WebInspector.IsolatedFileSystemManager.FileSystem} fileSystem 126 * @param {!WebInspector.IsolatedFileSystemManager.FileSystem} fileSystem
127 */ 127 */
128 _fileSystemAdded: function(errorMessage, fileSystem) 128 _fileSystemAdded: function(errorMessage, fileSystem)
129 { 129 {
130 var fileSystemPath; 130 var fileSystemPath;
131 if (errorMessage) 131 if (errorMessage) {
132 WebInspector.console.showErrorMessage(errorMessage) 132 WebInspector.messageSink.addErrorMessage(errorMessage, true);
133 else if (fileSystem) { 133 } else {
134 this._innerAddFileSystem(fileSystem); 134 this._innerAddFileSystem(fileSystem);
135 fileSystemPath = fileSystem.fileSystemPath; 135 fileSystemPath = fileSystem.fileSystemPath;
136 } 136 }
137 }, 137 },
138 138
139 /** 139 /**
140 * @param {string} fileSystemPath 140 * @param {string} fileSystemPath
141 */ 141 */
142 _fileSystemRemoved: function(fileSystemPath) 142 _fileSystemRemoved: function(fileSystemPath)
143 { 143 {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 fileSystemAdded: function(errorMessage, fileSystem) 218 fileSystemAdded: function(errorMessage, fileSystem)
219 { 219 {
220 this._IsolatedFileSystemManager._fileSystemAdded(errorMessage, fileSyste m); 220 this._IsolatedFileSystemManager._fileSystemAdded(errorMessage, fileSyste m);
221 } 221 }
222 } 222 }
223 223
224 /** 224 /**
225 * @type {!WebInspector.IsolatedFileSystemDispatcher} 225 * @type {!WebInspector.IsolatedFileSystemDispatcher}
226 */ 226 */
227 WebInspector.isolatedFileSystemDispatcher; 227 WebInspector.isolatedFileSystemDispatcher;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/ConsoleModel.js ('k') | Source/devtools/front_end/sdk/LiveEditSupport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698