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

Unified Diff: chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc

Issue 11827026: Overhaul JSON Schema Compiler to support a number of features required to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
index bdecda596e86efeece363fd4b006ca5520822351..c4a3b11c25fbd618e177da7bc61c352a97b71d6c 100644
--- a/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
+++ b/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc
@@ -60,30 +60,29 @@ void TabCaptureRegistry::HandleRequestUpdateOnUIThread(
return;
}
- tab_capture::TabCaptureState state =
- tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_NONE;
+ tab_capture::TabCaptureState state = tab_capture::TAB_CAPTURE_STATE_NONE;
switch (new_state) {
case content::MEDIA_REQUEST_STATE_REQUESTED:
- state = tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_REQUESTED;
+ state = tab_capture::TAB_CAPTURE_STATE_REQUESTED;
break;
case content::MEDIA_REQUEST_STATE_PENDING_APPROVAL:
- state = tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_PENDING;
+ state = tab_capture::TAB_CAPTURE_STATE_PENDING;
break;
case content::MEDIA_REQUEST_STATE_DONE:
- state = tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_ACTIVE;
+ state = tab_capture::TAB_CAPTURE_STATE_ACTIVE;
break;
case content::MEDIA_REQUEST_STATE_CLOSING:
- state = tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_STOPPED;
+ state = tab_capture::TAB_CAPTURE_STATE_STOPPED;
break;
case content::MEDIA_REQUEST_STATE_ERROR:
- state = tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_ERROR;
+ state = tab_capture::TAB_CAPTURE_STATE_ERROR;
break;
default:
// TODO(justinlin): Implement muted state notification.
break;
}
- if (state == tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_NONE) {
+ if (state == tab_capture::TAB_CAPTURE_STATE_NONE) {
// This is a state we don't handle.
return;
}
@@ -144,8 +143,8 @@ bool TabCaptureRegistry::AddRequest(const std::pair<int, int> key,
DeviceCaptureRequestMap::iterator it = requests_.find(key);
if (it != requests_.end()) {
const tab_capture::TabCaptureState state = it->second.status;
- if (state != tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_STOPPED &&
- state != tab_capture::TAB_CAPTURE_TAB_CAPTURE_STATE_ERROR)
+ if (state != tab_capture::TAB_CAPTURE_STATE_STOPPED &&
+ state != tab_capture::TAB_CAPTURE_STATE_ERROR)
return false;
}
requests_.insert(std::make_pair(key, request));
« no previous file with comments | « chrome/browser/extensions/api/tab_capture/tab_capture_api.cc ('k') | chrome/browser/extensions/api/usb/usb_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698