| 46 | LAZY_INSTANCE_INITIALIZER; |
| 47 | |
| 48 | std::string WindowOpenDispositionToString( |
| 49 | WindowOpenDisposition window_open_disposition) { |
| 50 | switch (window_open_disposition) { |
| 51 | case IGNORE_ACTION: |
| 52 | return "ignore"; |
| 53 | case SAVE_TO_DISK: |
| 54 | return "save_to_disk"; |
| 55 | case CURRENT_TAB: |
| 56 | return "current_tab"; |
| 57 | case NEW_BACKGROUND_TAB: |
| 58 | return "new_background_tab"; |
| 59 | case NEW_FOREGROUND_TAB: |
| 60 | return "new_foreground_tab"; |
| 61 | case NEW_WINDOW: |
| 62 | return "new_window"; |
| 63 | case NEW_POPUP: |
| 64 | return "new_popup"; |
| 65 | default: |
| 66 | NOTREACHED() << "Unknown Window Open Disposition"; |
| 67 | return "ignore"; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | static std::string TerminationStatusToString(base::TerminationStatus status) { |
| 72 | switch (status) { |
no outgoing calls
no test coverage detected