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

Side by Side Diff: chrome/browser/extensions/extensions_startup.cc

Issue 9669028: ui/base: Move message_box_win.{h,cc} to ui/base/win. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep sorted Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/importer/importer_host.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/extensions_startup.h" 5 #include "chrome/browser/extensions/extensions_startup.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include "ui/base/message_box_win.h" 15 #include "ui/base/win/message_box_win.h"
16 #endif 16 #endif
17 17
18 ExtensionsStartupUtil::ExtensionsStartupUtil() : pack_job_succeeded_(false) {} 18 ExtensionsStartupUtil::ExtensionsStartupUtil() : pack_job_succeeded_(false) {}
19 19
20 void ExtensionsStartupUtil::OnPackSuccess( 20 void ExtensionsStartupUtil::OnPackSuccess(
21 const FilePath& crx_path, 21 const FilePath& crx_path,
22 const FilePath& output_private_key_path) { 22 const FilePath& output_private_key_path) {
23 pack_job_succeeded_ = true; 23 pack_job_succeeded_ = true;
24 ShowPackExtensionMessage( 24 ShowPackExtensionMessage(
25 L"Extension Packaging Success", 25 L"Extension Packaging Success",
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 std::string extension_id = cmd_line.GetSwitchValueASCII( 83 std::string extension_id = cmd_line.GetSwitchValueASCII(
84 switches::kUninstallExtension); 84 switches::kUninstallExtension);
85 return ExtensionService::UninstallExtensionHelper(extension_service, 85 return ExtensionService::UninstallExtensionHelper(extension_service,
86 extension_id); 86 extension_id);
87 } 87 }
88 88
89 ExtensionsStartupUtil::~ExtensionsStartupUtil() { 89 ExtensionsStartupUtil::~ExtensionsStartupUtil() {
90 if (pack_job_.get()) 90 if (pack_job_.get())
91 pack_job_->ClearClient(); 91 pack_job_->ClearClient();
92 } 92 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | chrome/browser/importer/importer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698