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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 2175533002: Add UMA stats for storage manager for Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/options/chromeos/storage_manager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.exportPath('options'); 5 cr.exportPath('options');
6 6
7 /** 7 /**
8 * @typedef {{actionLinkText: (string|undefined), 8 * @typedef {{actionLinkText: (string|undefined),
9 * childUser: (boolean|undefined), 9 * childUser: (boolean|undefined),
10 * hasError: (boolean|undefined), 10 * hasError: (boolean|undefined),
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 }; 348 };
349 $('pointer-settings-button').onclick = function(evt) { 349 $('pointer-settings-button').onclick = function(evt) {
350 PageManager.showPageByName('pointer-overlay'); 350 PageManager.showPageByName('pointer-overlay');
351 chrome.send('coreOptionsUserMetricsAction', 351 chrome.send('coreOptionsUserMetricsAction',
352 ['Options_ShowTouchpadSettings']); 352 ['Options_ShowTouchpadSettings']);
353 }; 353 };
354 if (loadTimeData.getBoolean('enableStorageManager')) { 354 if (loadTimeData.getBoolean('enableStorageManager')) {
355 $('storage-manager-button').hidden = false; 355 $('storage-manager-button').hidden = false;
356 $('storage-manager-button').onclick = function(evt) { 356 $('storage-manager-button').onclick = function(evt) {
357 PageManager.showPageByName('storage'); 357 PageManager.showPageByName('storage');
358 chrome.send('coreOptionsUserMetricsAction',
359 ['Options_ShowStorageManager']);
358 }; 360 };
359 } 361 }
360 } 362 }
361 363
362 // Search section. 364 // Search section.
363 $('manage-default-search-engines').onclick = function(event) { 365 $('manage-default-search-engines').onclick = function(event) {
364 PageManager.showPageByName('searchEngines'); 366 PageManager.showPageByName('searchEngines');
365 chrome.send('coreOptionsUserMetricsAction', 367 chrome.send('coreOptionsUserMetricsAction',
366 ['Options_ManageSearchEngines']); 368 ['Options_ManageSearchEngines']);
367 }; 369 };
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 2449
2448 settings.hidden = !isVisible; 2450 settings.hidden = !isVisible;
2449 }; 2451 };
2450 } 2452 }
2451 2453
2452 // Export 2454 // Export
2453 return { 2455 return {
2454 BrowserOptions: BrowserOptions 2456 BrowserOptions: BrowserOptions
2455 }; 2457 };
2456 }); 2458 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/chromeos/storage_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698