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

Side by Side Diff: chrome/browser/chrome_browser_main_win.cc

Issue 2879683004: Initialize did_run_updater_ in browser startup. (Closed)
Patch Set: code review changes Created 3 years, 7 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 | no next file » | 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 #include "chrome/browser/chrome_browser_main_win.h" 5 #include "chrome/browser/chrome_browser_main_win.h"
6 6
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <windows.h> 10 #include <windows.h>
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr)); 375 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr));
376 376
377 // Set up a task to verify installed modules in the current process. 377 // Set up a task to verify installed modules in the current process.
378 content::BrowserThread::PostAfterStartupTask( 378 content::BrowserThread::PostAfterStartupTask(
379 FROM_HERE, content::BrowserThread::GetBlockingPool(), 379 FROM_HERE, content::BrowserThread::GetBlockingPool(),
380 base::Bind(&VerifyInstallation)); 380 base::Bind(&VerifyInstallation));
381 381
382 InitializeChromeElf(); 382 InitializeChromeElf();
383 383
384 #if defined(GOOGLE_CHROME_BUILD)
385 did_run_updater_.reset(new DidRunUpdater);
386 #endif
387
384 if (base::FeatureList::IsEnabled(safe_browsing::kSettingsResetPrompt)) { 388 if (base::FeatureList::IsEnabled(safe_browsing::kSettingsResetPrompt)) {
385 content::BrowserThread::PostAfterStartupTask( 389 content::BrowserThread::PostAfterStartupTask(
386 FROM_HERE, 390 FROM_HERE,
387 content::BrowserThread::GetTaskRunnerForThread( 391 content::BrowserThread::GetTaskRunnerForThread(
388 content::BrowserThread::UI), 392 content::BrowserThread::UI),
389 base::Bind(safe_browsing::MaybeShowSettingsResetPromptWithDelay)); 393 base::Bind(safe_browsing::MaybeShowSettingsResetPromptWithDelay));
390 } 394 }
391 395
392 // Record UMA data about whether the fault-tolerant heap is enabled. 396 // Record UMA data about whether the fault-tolerant heap is enabled.
393 // Use a delayed task to minimize the impact on startup time. 397 // Use a delayed task to minimize the impact on startup time.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 if (resource_id) 565 if (resource_id)
562 return l10n_util::GetStringUTF16(resource_id); 566 return l10n_util::GetStringUTF16(resource_id);
563 return base::string16(); 567 return base::string16();
564 } 568 }
565 569
566 // static 570 // static
567 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 571 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
568 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 572 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
569 installer::SetTranslationDelegate(&delegate); 573 installer::SetTranslationDelegate(&delegate);
570 } 574 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698