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

Side by Side Diff: chrome/app/chrome_main_app_mode_mac.mm

Issue 7691001: Move Mac-specific files in chrome/common to chrome/common/mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2010 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 // On Mac, one can't make shortcuts with command-line arguments. Instead, we 5 // On Mac, one can't make shortcuts with command-line arguments. Instead, we
6 // produce small app bundles which locate the Chromium framework and load it, 6 // produce small app bundles which locate the Chromium framework and load it,
7 // passing the appropriate data. This is the entry point into the framework for 7 // passing the appropriate data. This is the entry point into the framework for
8 // those app bundles. 8 // those app bundles.
9 9
10 #include <string> // TODO(viettrungluu): only needed for temporary hack 10 #include <string> // TODO(viettrungluu): only needed for temporary hack
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "chrome/common/app_mode_common_mac.h"
16 #include "chrome/common/chrome_paths_internal.h" 15 #include "chrome/common/chrome_paths_internal.h"
16 #include "chrome/common/mac/app_mode_common.h"
17 17
18 extern "C" { 18 extern "C" {
19 19
20 // |ChromeAppModeStart()| is the point of entry into the framework from the app 20 // |ChromeAppModeStart()| is the point of entry into the framework from the app
21 // mode loader. 21 // mode loader.
22 __attribute__((visibility("default"))) 22 __attribute__((visibility("default")))
23 int ChromeAppModeStart(const app_mode::ChromeAppModeInfo* info); 23 int ChromeAppModeStart(const app_mode::ChromeAppModeInfo* info);
24 24
25 // TODO(viettrungluu): put this in a header file somewhere. 25 // TODO(viettrungluu): put this in a header file somewhere.
26 int ChromeMain(int argc, char** argv); 26 int ChromeMain(int argc, char** argv);
(...skipping 20 matching lines...) Expand all
47 // For now, a cheesy hack instead. 47 // For now, a cheesy hack instead.
48 RAW_CHECK(info->app_mode_url); 48 RAW_CHECK(info->app_mode_url);
49 std::string argv1(std::string("--app=") + info->app_mode_url); 49 std::string argv1(std::string("--app=") + info->app_mode_url);
50 RAW_CHECK(info->app_mode_id); 50 RAW_CHECK(info->app_mode_id);
51 std::string argv2(std::string("--user-data-dir=/tmp/") + info->app_mode_id); 51 std::string argv2(std::string("--user-data-dir=/tmp/") + info->app_mode_id);
52 char* argv[] = { info->argv[0], 52 char* argv[] = { info->argv[0],
53 const_cast<char*>(argv1.c_str()), 53 const_cast<char*>(argv1.c_str()),
54 const_cast<char*>(argv2.c_str()) }; 54 const_cast<char*>(argv2.c_str()) };
55 return ChromeMain(static_cast<int>(arraysize(argv)), argv); 55 return ChromeMain(static_cast<int>(arraysize(argv)), argv);
56 } 56 }
OLDNEW
« no previous file with comments | « chrome/app/app_mode_loader_mac.mm ('k') | chrome/browser/renderer_host/text_input_client_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698