| Index: build/config/ios/rules.gni | 
| diff --git a/build/config/ios/rules.gni b/build/config/ios/rules.gni | 
| index 8afbbcab5a813a63a9b7d4bd5a18b2eb343fb8e0..568cfadad1c60206441306a6c0edcf92e8731cae 100644 | 
| --- a/build/config/ios/rules.gni | 
| +++ b/build/config/ios/rules.gni | 
| @@ -114,6 +114,16 @@ template("app") { | 
| libs = [] | 
| } | 
| libs += [ "UIKit.framework" ] | 
| + | 
| +    # TODO(crbug.com/599203) - iossim should probably be a data dependency | 
| +    # of the create_bundle(target_name) target instead but at the moment | 
| +    # create_bundle() is ignoring data_deps. | 
| +    if (use_ios_simulator) { | 
| +      if (!defined(data_deps)) { | 
| +        data_deps = [] | 
| +      } | 
| +      data_deps += [ "//testing/iossim(${host_toolchain})" ] | 
| +    } | 
| } | 
|  | 
| bundle_data(_bundle_data_executable) { | 
| @@ -148,13 +158,6 @@ template("app") { | 
| ":$_bundle_data_info_plist", | 
| ] | 
|  | 
| -    if (use_ios_simulator) { | 
| -      if (!defined(data_deps)) { | 
| -        data_deps = [] | 
| -      } | 
| -      data_deps += [ "//testing/iossim(${host_toolchain})" ] | 
| -    } | 
| - | 
| bundle_root_dir = "$root_out_dir/$_output_name.app" | 
| bundle_resources_dir = bundle_root_dir | 
| bundle_executable_dir = bundle_root_dir | 
|  |