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

Side by Side Diff: chrome/install_static/install_util.cc

Issue 2764963002: Move ProgID methods from BrowserDistribution into install_static. (Closed)
Patch Set: huangs comments Created 3 years, 9 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 | « chrome/install_static/install_util.h ('k') | chrome/installer/setup/uninstall.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/install_static/install_util.h" 5 #include "chrome/install_static/install_util.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <assert.h> 8 #include <assert.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 } 317 }
318 318
319 const wchar_t* GetAppGuid() { 319 const wchar_t* GetAppGuid() {
320 return InstallDetails::Get().app_guid(); 320 return InstallDetails::Get().app_guid();
321 } 321 }
322 322
323 const wchar_t* GetBaseAppId() { 323 const wchar_t* GetBaseAppId() {
324 return InstallDetails::Get().base_app_id(); 324 return InstallDetails::Get().base_app_id();
325 } 325 }
326 326
327 const wchar_t* GetProgIdPrefix() {
328 return InstallDetails::Get().mode().prog_id_prefix;
329 }
330
331 const wchar_t* GetProgIdDescription() {
332 return InstallDetails::Get().mode().prog_id_description;
333 }
334
327 bool GetCollectStatsConsent() { 335 bool GetCollectStatsConsent() {
328 bool enabled = true; 336 bool enabled = true;
329 337
330 if (ReportingIsEnforcedByPolicy(&enabled)) 338 if (ReportingIsEnforcedByPolicy(&enabled))
331 return enabled; 339 return enabled;
332 340
333 const bool system_install = IsSystemInstall(); 341 const bool system_install = IsSystemInstall();
334 342
335 DWORD out_value = 0; 343 DWORD out_value = 0;
336 344
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 case ChannelStrategy::ADDITIONAL_PARAMETERS: 771 case ChannelStrategy::ADDITIONAL_PARAMETERS:
764 return ChannelFromAdditionalParameters(mode, system_level, from_binaries); 772 return ChannelFromAdditionalParameters(mode, system_level, from_binaries);
765 case ChannelStrategy::FIXED: 773 case ChannelStrategy::FIXED:
766 return mode.default_channel_name; 774 return mode.default_channel_name;
767 } 775 }
768 776
769 return std::wstring(); 777 return std::wstring();
770 } 778 }
771 779
772 } // namespace install_static 780 } // namespace install_static
OLDNEW
« no previous file with comments | « chrome/install_static/install_util.h ('k') | chrome/installer/setup/uninstall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698