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

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

Issue 2165503002: Add UMA stats for storage manager for Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 2435
2434 settings.hidden = !isVisible; 2436 settings.hidden = !isVisible;
2435 }; 2437 };
2436 } 2438 }
2437 2439
2438 // Export 2440 // Export
2439 return { 2441 return {
2440 BrowserOptions: BrowserOptions 2442 BrowserOptions: BrowserOptions
2441 }; 2443 };
2442 }); 2444 });
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