diff --git a/closure/goog/debug/debugwindow.js b/closure/goog/debug/debugwindow.js
index <HASH>..<HASH> 100644
--- a/closure/goog/debug/debugwindow.js
+++ b/closure/goog/debug/debugwindow.js
@@ -603,3 +603,16 @@ goog.debug.DebugWindow.prototype.addFilter = function(loggerName) {
 goog.debug.DebugWindow.prototype.removeFilter = function(loggerName) {
   delete this.filteredLoggers_[loggerName];
 };
+
+
+/**
+ * Modify the size of the circular buffer. Allows the log to retain more
+ * information while the window is closed.
+ * @param {number} size New size of the circular buffer.
+ */
+goog.debug.DebugWindow.prototype.resetBufferWithNewSize = function(size) {
+  if (size > 0 && size < 50000) {
+    this.clear_();
+    this.savedMessages_ = new goog.structs.CircularBuffer(size);
+  }
+};
Allow changes to the circular buffer size.

R=gboyer,arv,pupius,nicksantos
DELTA=<I>  (<I> added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=<I>


git-svn-id: <URL>