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

Unified Diff: pkg/webdriver/lib/webdriver.dart

Issue 12321078: Make base64 decoding available in dart:crypto Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove duplicate base64 decoding functionality from webdriver and use dart:crypto Created 7 years, 8 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 | « pkg/webdriver/lib/src/base64decoder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/webdriver/lib/webdriver.dart
diff --git a/pkg/webdriver/lib/webdriver.dart b/pkg/webdriver/lib/webdriver.dart
index fbae2d3e2a5b1d24aed82127e048998318689994..cf2eb597b3320676b9d165238789d24d1bae2d05 100644
--- a/pkg/webdriver/lib/webdriver.dart
+++ b/pkg/webdriver/lib/webdriver.dart
@@ -5,12 +5,11 @@
library webdriver;
import 'dart:async';
+import 'dart:crypto';
import 'dart:io';
import 'dart:json' as json;
import 'dart:uri';
-part 'src/base64decoder.dart';
-
/**
* WebDriver bindings for Dart.
*
@@ -663,7 +662,7 @@ class WebDriverSession extends WebDriverBase {
Future<List<int>> getScreenshot([fname]) {
var completer = new Completer();
return _get('screenshot', completer, (r, v) {
- var image = Base64Decoder.decode(v);
+ var image = CryptoUtils.base64StringToBytes(v);
if (fname != null) {
writeBytesToFile(fname, image);
}
« no previous file with comments | « pkg/webdriver/lib/src/base64decoder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698