OLD | NEW |
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_install_ui.h" | 5 #include "chrome/browser/extensions/external_install_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 bool HasExternalInstallBubble(ExtensionService* service) { | 582 bool HasExternalInstallBubble(ExtensionService* service) { |
583 GlobalErrorService* error_service = | 583 GlobalErrorService* error_service = |
584 GlobalErrorServiceFactory::GetForProfile(service->profile()); | 584 GlobalErrorServiceFactory::GetForProfile(service->profile()); |
585 GlobalError* error = error_service->GetGlobalErrorByMenuItemCommandID( | 585 GlobalError* error = error_service->GetGlobalErrorByMenuItemCommandID( |
586 kMenuCommandId); | 586 kMenuCommandId); |
587 return error && error->HasBubbleView(); | 587 return error && error->HasBubbleView(); |
588 } | 588 } |
589 | 589 |
590 } // namespace extensions | 590 } // namespace extensions |
OLD | NEW |