OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/error_console/error_console.h" | 5 #include "chrome/browser/extensions/error_console/error_console.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 errors_.RemoveAllErrors(); | 222 errors_.RemoveAllErrors(); |
223 enabled_ = false; | 223 enabled_ = false; |
224 } | 224 } |
225 | 225 |
226 void ErrorConsole::OnPrefChanged() { | 226 void ErrorConsole::OnPrefChanged() { |
227 CheckEnabled(); | 227 CheckEnabled(); |
228 } | 228 } |
229 | 229 |
230 void ErrorConsole::OnExtensionUnloaded(content::BrowserContext* browser_context, | 230 void ErrorConsole::OnExtensionUnloaded(content::BrowserContext* browser_context, |
231 const Extension* extension, | 231 const Extension* extension, |
232 UnloadedExtensionInfo::Reason reason) { | 232 UnloadedExtensionReason reason) { |
233 CheckEnabled(); | 233 CheckEnabled(); |
234 } | 234 } |
235 | 235 |
236 void ErrorConsole::OnExtensionLoaded(content::BrowserContext* browser_context, | 236 void ErrorConsole::OnExtensionLoaded(content::BrowserContext* browser_context, |
237 const Extension* extension) { | 237 const Extension* extension) { |
238 CheckEnabled(); | 238 CheckEnabled(); |
239 } | 239 } |
240 | 240 |
241 void ErrorConsole::OnExtensionInstalled( | 241 void ErrorConsole::OnExtensionInstalled( |
242 content::BrowserContext* browser_context, | 242 content::BrowserContext* browser_context, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 ExtensionRegistry::Get(profile_)->GetExtensionById( | 292 ExtensionRegistry::Get(profile_)->GetExtensionById( |
293 extension_id, ExtensionRegistry::EVERYTHING); | 293 extension_id, ExtensionRegistry::EVERYTHING); |
294 if (extension && extension->location() == Manifest::UNPACKED) | 294 if (extension && extension->location() == Manifest::UNPACKED) |
295 return (1 << ExtensionError::NUM_ERROR_TYPES) - 1; | 295 return (1 << ExtensionError::NUM_ERROR_TYPES) - 1; |
296 | 296 |
297 // Otherwise, use the default mask. | 297 // Otherwise, use the default mask. |
298 return default_mask_; | 298 return default_mask_; |
299 } | 299 } |
300 | 300 |
301 } // namespace extensions | 301 } // namespace extensions |
OLD | NEW |