[DevTools] Add notification of storage being limited in Incognito mode

Add a message telling users that storage quota is limited in Incognito
mode (why: crbug 800329 comment \#1). In non-Incognito mode, the quota
is in gigabytes. But in Incognito, the quota cap is no more than 120MB.

Bug: 794269, 800329
Change-Id: Ic0d9e9d40119424c0b44bdd314d1f836af4ed357
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506462
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Reviewed-by: Erik Luo <luoe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#639677}
diff --git a/third_party/blink/renderer/devtools/front_end/resources/ClearStorageView.js b/third_party/blink/renderer/devtools/front_end/resources/ClearStorageView.js
index 4d9220f..2dad3ed 100644
--- a/third_party/blink/renderer/devtools/front_end/resources/ClearStorageView.js
+++ b/third_party/blink/renderer/devtools/front_end/resources/ClearStorageView.js
@@ -210,7 +210,12 @@
       return;
     }
     this._quotaRow.textContent = Common.UIString(
-        '%s used out of %s storage quota', Number.bytesToString(response.usage), Number.bytesToString(response.quota));
+        '%s used out of %s storage quota.\u00a0', Number.bytesToString(response.usage),
+        Number.bytesToString(response.quota));
+    if (response.quota < 125829120) {  // 120 MB
+      this._quotaRow.title = ls`Storage quota is limited in Incognito mode`;
+      this._quotaRow.appendChild(UI.Icon.create('smallicon-info'));
+    }
 
     if (!this._quotaUsage || this._quotaUsage !== response.usage) {
       this._quotaUsage = response.usage;
diff --git a/third_party/blink/web_tests/http/tests/devtools/application-panel/storage-view-reports-quota-expected.txt b/third_party/blink/web_tests/http/tests/devtools/application-panel/storage-view-reports-quota-expected.txt
index 61726d2f4..16a4ebc 100644
--- a/third_party/blink/web_tests/http/tests/devtools/application-panel/storage-view-reports-quota-expected.txt
+++ b/third_party/blink/web_tests/http/tests/devtools/application-panel/storage-view-reports-quota-expected.txt
@@ -2,11 +2,11 @@
 
 Tree element found: true
 Clear storage view is visible: true
--- B used out of -- storage quota
+-- B used out of -- storage quota. 
 Usage breakdown:
 
 Running: Now with data
--- KB used out of -- storage quota
+-- KB used out of -- storage quota. 
 Usage breakdown:
 IndexedDB: --.- KB