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

Unified Diff: Source/core/page/PerformanceUserTiming.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/Location.cpp ('k') | Source/core/platform/chromium/ClipboardChromium.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PerformanceUserTiming.cpp
diff --git a/Source/core/page/PerformanceUserTiming.cpp b/Source/core/page/PerformanceUserTiming.cpp
index 794eef359cff3e91bfaab665ce8228186ffd6a9d..c2e25876031a20e368e3e60ab5925b06439e0668 100644
--- a/Source/core/page/PerformanceUserTiming.cpp
+++ b/Source/core/page/PerformanceUserTiming.cpp
@@ -100,7 +100,7 @@ void UserTiming::mark(const String& markName, ExceptionCode& ec)
{
ec = 0;
if (restrictedKeyMap().contains(markName)) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return;
}
@@ -123,13 +123,13 @@ double UserTiming::findExistingMarkStartTime(const String& markName, ExceptionCo
if (restrictedKeyMap().contains(markName)) {
double value = static_cast<double>((m_performance->timing()->*(restrictedKeyMap().get(markName)))());
if (!value) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return 0.0;
}
return value - m_performance->timing()->navigationStart();
}
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return 0.0;
}
« no previous file with comments | « Source/core/page/Location.cpp ('k') | Source/core/platform/chromium/ClipboardChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698